Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:33:43

0001 #ifndef BOOST_HASH2_IS_ENDIAN_INDEPENDENT_HPP_INCLUDED
0002 #define BOOST_HASH2_IS_ENDIAN_INDEPENDENT_HPP_INCLUDED
0003 
0004 // Copyright 2017, 2023, 2024 Peter Dimov
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 #include <type_traits>
0009 
0010 namespace boost
0011 {
0012 namespace hash2
0013 {
0014 
0015 template<class T> struct is_endian_independent:
0016     std::integral_constant< bool, sizeof(T) == 1 >
0017 {
0018 };
0019 
0020 template<class T> struct is_endian_independent<T const>:
0021     is_endian_independent<T>
0022 {
0023 };
0024 
0025 } // namespace hash2
0026 } // namespace boost
0027 
0028 #endif // #ifndef BOOST_HASH2_IS_ENDIAN_INDEPENDENT_HPP_INCLUDED