| 1 | #ifndef BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED |
| 2 | #define BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED |
| 3 | |
| 4 | // Copyright 2023 Peter Dimov |
| 5 | // Distributed under the Boost Software License, Version 1.0. |
| 6 | // http://www.boost.org/LICENSE_1_0.txt |
| 7 | |
| 8 | #include <type_traits> |
| 9 | |
| 10 | namespace boost |
| 11 | { |
| 12 | namespace endian |
| 13 | { |
| 14 | namespace detail |
| 15 | { |
| 16 | |
| 17 | template<class T> struct is_integral: std::is_integral<T> |
| 18 | { |
| 19 | }; |
| 20 | |
| 21 | #if defined(__SIZEOF_INT128__) |
| 22 | |
| 23 | template<> struct is_integral<__int128_t>: std::true_type |
| 24 | { |
| 25 | }; |
| 26 | |
| 27 | template<> struct is_integral<__uint128_t>: std::true_type |
| 28 | { |
| 29 | }; |
| 30 | |
| 31 | #endif |
| 32 | |
| 33 | } // namespace detail |
| 34 | } // namespace endian |
| 35 | } // namespace boost |
| 36 | |
| 37 | #endif // BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED |
| 38 | |