namespaces.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef BOOST_UUID_NAMESPACES_HPP_INCLUDED
  2. #define BOOST_UUID_NAMESPACES_HPP_INCLUDED
  3. // Copyright 2010 Andy Tompkins
  4. // Copyright 2024 Peter Dimov
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // https://www.boost.org/LICENSE_1_0.txt
  7. #include <boost/uuid/uuid.hpp>
  8. #include <boost/config.hpp>
  9. namespace boost {
  10. namespace uuids {
  11. namespace ns {
  12. BOOST_CXX14_CONSTEXPR inline uuid dns() noexcept
  13. {
  14. return {{
  15. 0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1,
  16. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  17. }
  18. BOOST_CXX14_CONSTEXPR inline uuid url() noexcept
  19. {
  20. return {{
  21. 0x6b, 0xa7, 0xb8, 0x11, 0x9d, 0xad, 0x11, 0xd1,
  22. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  23. }
  24. BOOST_CXX14_CONSTEXPR inline uuid oid() noexcept
  25. {
  26. return {{
  27. 0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1,
  28. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  29. }
  30. BOOST_CXX14_CONSTEXPR inline uuid x500dn() noexcept
  31. {
  32. return {{
  33. 0x6b, 0xa7, 0xb8, 0x14, 0x9d, 0xad, 0x11, 0xd1,
  34. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  35. }
  36. }}} // namespace boost::uuids::ns
  37. #endif // BOOST_UUID_NAMESPACES_HPP_INCLUDED