One Hat Cyber Team
Your IP :
216.73.217.173
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
boost
/
nowide
/
detail
/
View File Name :
is_path.hpp
// // Copyright (c) 2020 Alexander Grund // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_NOWIDE_DETAIL_IS_PATH_HPP_INCLUDED #define BOOST_NOWIDE_DETAIL_IS_PATH_HPP_INCLUDED #include <type_traits> namespace boost { namespace nowide { namespace detail { /// Trait to heuristically check for a *\::filesystem::path /// Done by checking for make_preferred and filename member functions with correct signature template<typename T> struct is_path { template<typename U, U& (U::*)(), U (U::*)() const> struct Check; template<typename U> static std::true_type test(Check<U, &U::make_preferred, &U::filename>*); template<typename U> static std::false_type test(...); static constexpr bool value = decltype(test<T>(0))::value; }; /// SFINAE trait which has a member "type = Result" if the Path is a *\::filesystem::path template<typename Path, typename Result> using enable_if_path_t = typename std::enable_if<is_path<Path>::value, Result>::type; } // namespace detail } // namespace nowide } // namespace boost #endif