16 :_p(m._p){ m._p =
nullptr; }
20 operator bool()
const {
return _p !=
nullptr; }
23 return p._p ==
nullptr;
28 return p._p !=
nullptr;
33 delete _p; _p =
nullptr;
pointer operator->() const
unique_ptr(unique_ptr &&m)
unique_ptr & operator=(nullptr_t)
friend bool operator!=(const unique_ptr &p, nullptr_t)
friend bool operator==(const unique_ptr &p, nullptr_t)
unique_ptr(pointer t=nullptr)
unique_ptr & operator=(unique_ptr &&o)
decltype(nullptr) nullptr_t
#define T(meth, val, expected)