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())
34 assert(ptr->get_uuid() == uuid);
44 assert(ptr->get_uuid() == uuid);
54 assert(ptr->get_uuid() == uuid);
62 void update(std::map<UUID, T> &map)
65 if (map.count(uuid)) {
73 void update(
const std::map<UUID, T_without_const> &map)
76 if (map.count(uuid)) {