![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/lexical_cast/detail/ |
Upload File : |
// Copyright Kevlin Henney, 2000-2005. // Copyright Alexander Nasonov, 2006-2010. // Copyright Antony Polukhin, 2011-2019. // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // what: lexical_cast custom keyword cast // who: contributed by Kevlin Henney, // enhanced with contributions from Terje Slettebo, // with additional fixes and suggestions from Gennaro Prota, // Beman Dawes, Dave Abrahams, Daryle Walker, Peter Dimov, // Alexander Nasonov, Antony Polukhin, Justin Viiret, Michael Hofmann, // Cheng Yang, Matthew Bradbury, David W. Birdsall, Pavel Korzh and other Boosters // when: November 2000, March 2003, June 2005, June 2006, March 2011 - 2014 #ifndef BOOST_LEXICAL_CAST_DETAIL_IS_CHARACTER_HPP #define BOOST_LEXICAL_CAST_DETAIL_IS_CHARACTER_HPP #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif #include <boost/type_traits/integral_constant.hpp> #include <boost/type_traits/is_same.hpp> namespace boost { namespace detail // is_character<...> { // returns true, if T is one of the character types template < typename T > struct is_character { typedef BOOST_DEDUCED_TYPENAME boost::integral_constant< bool, boost::is_same< T, char >::value || #if !defined(BOOST_NO_STRINGSTREAM) && !defined(BOOST_NO_STD_WSTRING) boost::is_same< T, wchar_t >::value || #endif #ifndef BOOST_NO_CXX11_CHAR16_T boost::is_same< T, char16_t >::value || #endif #ifndef BOOST_NO_CXX11_CHAR32_T boost::is_same< T, char32_t >::value || #endif boost::is_same< T, unsigned char >::value || boost::is_same< T, signed char >::value > type; BOOST_STATIC_CONSTANT(bool, value = (type::value) ); }; } } #endif // BOOST_LEXICAL_CAST_DETAIL_IS_CHARACTER_HPP