Lines Matching defs:unique_cptr
43 class unique_cptr {
47 constexpr unique_cptr() : ptr_(nullptr) {}
48 constexpr unique_cptr(std::nullptr_t) : ptr_(nullptr) {}
49 explicit unique_cptr(pointer ptr) : ptr_(ptr) {}
50 unique_cptr(unique_cptr&& o) : ptr_(o.ptr_) { o.ptr_ = nullptr; }
52 ~unique_cptr() { std::free(reinterpret_cast<void*>(ptr_)); }
54 inline unique_cptr& operator=(unique_cptr&& o) {
65 inline unique_cptr& operator=(std::nullptr_t) {
89 inline void swap(unique_cptr& o) { std::swap(ptr_, o.ptr_); }
97 inline bool operator==(const unique_cptr& o) const { return ptr_ == o.ptr_; }
99 inline bool operator!=(const unique_cptr& o) const { return ptr_ != o.ptr_; }
106 DISALLOW_COPY_AND_ASSIGN(unique_cptr);