Searched refs:ptr_ (Results 1 – 2 of 2) sorted by relevance
47 constexpr unique_cptr() : ptr_(nullptr) {} in unique_cptr()48 constexpr unique_cptr(std::nullptr_t) : ptr_(nullptr) {} in unique_cptr()49 explicit unique_cptr(pointer ptr) : ptr_(ptr) {} in unique_cptr()50 unique_cptr(unique_cptr&& o) : ptr_(o.ptr_) { o.ptr_ = nullptr; } in unique_cptr()52 ~unique_cptr() { std::free(reinterpret_cast<void*>(ptr_)); } in ~unique_cptr()59 std::free(reinterpret_cast<void*>(ptr_));60 ptr_ = o.ptr_;61 o.ptr_ = nullptr;66 std::free(reinterpret_cast<void*>(ptr_));67 ptr_ = nullptr;[all …]
4709 char* ptr_; member in mcld::arena4726 arena() noexcept : ptr_(buf_) {} in arena()4727 ~arena() {ptr_ = nullptr;} in ~arena()4735 std::size_t used() const {return static_cast<std::size_t>(ptr_ - buf_);} in used()4736 void reset() {ptr_ = buf_;} in reset()4744 if (static_cast<std::size_t>(buf_ + N - ptr_) >= n) in allocate()4746 char* r = ptr_; in allocate()4747 ptr_ += n; in allocate()4760 if (p + n == ptr_) in deallocate()4761 ptr_ = p; in deallocate()