namespaces.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. namespace boost {
  9. namespace uuids {
  10. namespace ns {
  11. inline uuid dns() noexcept
  12. {
  13. uuid result = {{
  14. 0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1,
  15. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  16. return result;
  17. }
  18. inline uuid url() noexcept
  19. {
  20. uuid result = {{
  21. 0x6b, 0xa7, 0xb8, 0x11, 0x9d, 0xad, 0x11, 0xd1,
  22. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  23. return result;
  24. }
  25. inline uuid oid() noexcept
  26. {
  27. uuid result = {{
  28. 0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1,
  29. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  30. return result;
  31. }
  32. inline uuid x500dn() noexcept
  33. {
  34. uuid result = {{
  35. 0x6b, 0xa7, 0xb8, 0x14, 0x9d, 0xad, 0x11, 0xd1,
  36. 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }};
  37. return result;
  38. }
  39. }}} // namespace boost::uuids::ns
  40. #endif // BOOST_UUID_NAMESPACES_HPP_INCLUDED