![]() 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/multiprecision/traits/ |
Upload File : |
/////////////////////////////////////////////////////////////////////////////// // Copyright 2015 John Maddock. 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) #ifndef BOOST_IS_BYTE_CONTAINER_HPP #define BOOST_IS_BYTE_CONTAINER_HPP #include <iterator> #include <boost/mpl/has_xxx.hpp> #include <boost/type_traits/is_integral.hpp> #include <boost/type_traits/remove_cv.hpp> namespace boost{ namespace multiprecision{ namespace detail{ BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_member_const_iterator, const_iterator, false) template <class C, bool b> struct is_byte_container_imp { // Note: Don't use C::value_type as this is a rather widespread typedef, even for non-range types typedef typename boost::remove_cv<typename std::iterator_traits<typename C::const_iterator>::value_type>::type container_value_type; static const bool value = boost::is_integral<container_value_type>::value && (sizeof(container_value_type) == 1); }; template <class C> struct is_byte_container_imp<C, false> : public boost::false_type {}; template <class C> struct is_byte_container : public is_byte_container_imp<C, has_member_const_iterator<C>::value> {}; }}} // namespaces #endif // BOOST_IS_BYTE_CONTAINER_HPP