22 #ifndef GUID_HPP_HEADER 23 #define GUID_HPP_HEADER 25 #include <boost/uuid/uuid.hpp> 40 boost::uuids::uuid implementation;
43 GUID (boost::uuids::uuid
const &) noexcept;
45 GUID (
GUID const &) noexcept =
default;
46 GUID () noexcept =
default;
47 GUID & operator = (
GUID &&) noexcept;
49 operator GncGUID ()
const noexcept;
50 static GUID create_random () noexcept;
51 static GUID const & null_guid () noexcept;
52 static GUID from_string (
const char*);
53 static GUID from_string (std::string
const& s) {
return from_string (s.c_str()); };
54 static bool is_valid_guid (
const char*);
55 static bool is_valid_guid (std::string
const &s) {
return is_valid_guid (s.c_str()); };
56 std::string to_string ()
const noexcept;
57 auto begin ()
const noexcept -> decltype (implementation.begin ());
58 auto end ()
const noexcept -> decltype (implementation.end ());
59 bool operator < (
GUID const &) noexcept;
60 friend bool operator == (
GUID const &,
GncGUID const &) noexcept;
61 friend bool operator != (
GUID const &,
GUID const &) noexcept;
64 bool operator != (
GUID const &,
GUID const &) noexcept;
65 bool operator == (
GUID const &,
GncGUID const &) noexcept;
globally unique ID User API
The type used to store guids in C.