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 (std::string
const &);
53 static bool is_valid_guid (std::string
const &);
54 std::string to_string ()
const noexcept;
55 auto begin ()
const noexcept -> decltype (implementation.begin ());
56 auto end ()
const noexcept -> decltype (implementation.end ());
57 bool operator < (
GUID const &) noexcept;
58 friend bool operator == (
GUID const &,
GncGUID const &) noexcept;
59 friend bool operator != (
GUID const &,
GUID const &) noexcept;
62 bool operator != (
GUID const &,
GUID const &) noexcept;
63 bool operator == (
GUID const &,
GncGUID const &) noexcept;
globally unique ID User API
The type used to store guids in C.