Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #ifndef BOOST_HASH2_FLAVOR_HPP_INCLUDED
0002 #define BOOST_HASH2_FLAVOR_HPP_INCLUDED
0003 
0004 // Copyright 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 <boost/hash2/endian.hpp>
0009 #include <cstdint>
0010 
0011 namespace boost
0012 {
0013 namespace hash2
0014 {
0015 
0016 struct default_flavor
0017 {
0018     using size_type = std::uint32_t;
0019     static constexpr auto byte_order = endian::native;
0020 };
0021 
0022 struct little_endian_flavor
0023 {
0024     using size_type = std::uint32_t;
0025     static constexpr auto byte_order = endian::little;
0026 };
0027 
0028 struct big_endian_flavor
0029 {
0030     using size_type = std::uint32_t;
0031     static constexpr auto byte_order = endian::big;
0032 };
0033 
0034 } // namespace hash2
0035 } // namespace boost
0036 
0037 #endif // #ifndef BOOST_HASH2_FLAVOR_HPP_INCLUDED