Back to home page

EIC code displayed by LXR

 
 

    


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 // Copyright 2023 Peter Dimov
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // http://www.boost.org/LICENSE_1_0.txt
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 } // namespace detail
0034 } // namespace endian
0035 } // namespace boost
0036 
0037 #endif  // BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED