// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt // Copyright Gero Peterhoff #ifndef BOOST_TYPE_TRAITS_ENDIAN_HPP #define BOOST_TYPE_TRAITS_ENDIAN_HPP #include #include namespace boost { struct is_little_endian : public integral_constant < bool, endian::order::native == endian::order::little > {}; struct is_big_endian : public integral_constant < bool, endian::order::native == endian::order::big > {}; #if !defined(BOOST_NO_CXX17_INLINE_VARIABLES) inline constexpr bool is_little_endian_v = is_little_endian::value; inline constexpr bool is_big_endian_v = is_big_endian::value; #endif } // boost #endif // BOOST_TYPE_TRAITS_ENDIAN_HPP