order.hpp 601 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef BOOST_ENDIAN_DETAIL_ORDER_HPP_INCLUDED
  2. #define BOOST_ENDIAN_DETAIL_ORDER_HPP_INCLUDED
  3. // Copyright 2019 Peter Dimov
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. #include <boost/core/scoped_enum.hpp>
  8. #include <boost/predef/other/endian.h>
  9. namespace boost
  10. {
  11. namespace endian
  12. {
  13. BOOST_SCOPED_ENUM_START(order)
  14. {
  15. big, little,
  16. # if BOOST_ENDIAN_BIG_BYTE
  17. native = big
  18. # else
  19. native = little
  20. # endif
  21. }; BOOST_SCOPED_ENUM_END
  22. } // namespace endian
  23. } // namespace boost
  24. #endif // BOOST_ENDIAN_DETAIL_ORDER_HPP_INCLUDED