File indexing completed on 2024-11-16 09:07:42
0001 #ifndef BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
0002 #define BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
0003
0004
0005
0006
0007
0008 #include <type_traits>
0009
0010 namespace boost
0011 {
0012 namespace endian
0013 {
0014 namespace detail
0015 {
0016
0017 template<class T> struct is_integral: std::is_integral<T>
0018 {
0019 };
0020
0021 #if defined(__SIZEOF_INT128__)
0022
0023 template<> struct is_integral<__int128_t>: std::true_type
0024 {
0025 };
0026
0027 template<> struct is_integral<__uint128_t>: std::true_type
0028 {
0029 };
0030
0031 #endif
0032
0033 }
0034 }
0035 }
0036
0037 #endif