mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add user-defined literals _uuid3, _uuid5
This commit is contained in:
parent
94b146b5cc
commit
35e651d144
10 changed files with 521 additions and 10 deletions
64
sprout/uuid/namespaces.hpp
Normal file
64
sprout/uuid/namespaces.hpp
Normal file
|
@ -0,0 +1,64 @@
|
|||
#ifndef SPROUT_UUID_NAMESPACES_HPP
|
||||
#define SPROUT_UUID_NAMESPACES_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/uuid/uuid.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace uuids {
|
||||
//
|
||||
// namespace_dns_uuid
|
||||
//
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
namespace_dns_uuid() {
|
||||
return sprout::uuids::uuid{{
|
||||
0x6b, 0xa7, 0xb8, 0x10,
|
||||
0x9d, 0xad,
|
||||
0x11, 0xd1,
|
||||
0x80, 0xb4,
|
||||
0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8
|
||||
}};
|
||||
}
|
||||
//
|
||||
// namespace_url_uuid
|
||||
//
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
namespace_url_uuid() {
|
||||
return sprout::uuids::uuid{{
|
||||
0x6b, 0xa7, 0xb8, 0x11,
|
||||
0x9d, 0xad,
|
||||
0x11, 0xd1,
|
||||
0x80, 0xb4,
|
||||
0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8
|
||||
}};
|
||||
}
|
||||
//
|
||||
// namespace_oid_uuid
|
||||
//
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
namespace_oid_uuid() {
|
||||
return sprout::uuids::uuid{{
|
||||
0x6b, 0xa7, 0xb8, 0x12,
|
||||
0x9d, 0xad,
|
||||
0x11, 0xd1,
|
||||
0x80, 0xb4,
|
||||
0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8
|
||||
}};
|
||||
}
|
||||
//
|
||||
// namespace_x500_uuid
|
||||
//
|
||||
inline SPROUT_CONSTEXPR sprout::uuids::uuid
|
||||
namespace_x500_uuid() {
|
||||
return sprout::uuids::uuid{{
|
||||
0x6b, 0xa7, 0xb8, 0x14,
|
||||
0x9d, 0xad,
|
||||
0x11, 0xd1,
|
||||
0x80, 0xb4,
|
||||
0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8
|
||||
}};
|
||||
}
|
||||
} // namespace uuids
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_UUID_NAMESPACES_HPP
|
Loading…
Add table
Add a link
Reference in a new issue