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)) {