5 #ifndef ICE_UNIQUE_PTR_H
6 #define ICE_UNIQUE_PTR_H
13 #ifdef ICE_CPP11_MAPPING
16 using UniquePtr = std::unique_ptr<T>;
25 explicit UniquePtr(T* ptr = 0) :
45 void reset(T* ptr = 0)
47 assert(ptr == 0 || ptr != _ptr);
76 void swap(UniquePtr& a)
85 UniquePtr(UniquePtr&);
86 UniquePtr& operator=(UniquePtr&);