| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
- #define BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
- // Copyright 2023 Peter Dimov
- // Distributed under the Boost Software License, Version 1.0.
- // http://www.boost.org/LICENSE_1_0.txt
- #include <type_traits>
- namespace boost
- {
- namespace endian
- {
- namespace detail
- {
- template<class T> struct is_integral: std::is_integral<T>
- {
- };
- #if defined(__SIZEOF_INT128__)
- template<> struct is_integral<__int128_t>: std::true_type
- {
- };
- template<> struct is_integral<__uint128_t>: std::true_type
- {
- };
- #endif
- } // namespace detail
- } // namespace endian
- } // namespace boost
- #endif // BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
|