36 template<
typename T,
class T
int,
bool thread_safe = true>
61 static std::atomic<Tint>
_uuid = 0;
63 uuid =
_uuid.fetch_add(1, std::memory_order_relaxed);
A class that provides unique identifiers (UUID) to instances.
WithUUID()
Constructor of the class.
Tint get_uuid() const
Get the uuid of the class.
Tint uuid
The unique identifier of the class.
namespace for basic c++ utilities
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.