3 #include "uuid_provider.hpp" 11 typedef typename std::remove_const<T>::type T_without_const;
23 uuid_ptr(T *p) : ptr(p), uuid(p ? p->get_uuid() :
UUID())
33 assert(ptr->get_uuid() == uuid);
41 assert(ptr->get_uuid() == uuid);
49 assert(ptr->get_uuid() == uuid);
56 void update(std::map<UUID, T> &map)
59 if (map.count(uuid)) {
67 void update(
const std::map<UUID, T_without_const> &map)
70 if (map.count(uuid)) {
Definition: uuid_ptr.hpp:9
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16