Lines Matching defs:ptr
296 T *ptr;
558 auto ptr = static_cast<char *>(slicePtr(this)) + size_of<T>() * n;
559 return *reinterpret_cast<T *>(ptr);
597 auto ptr = static_cast<char *>(this->pos) + this->stride * n;
598 return *reinterpret_cast<T *>(ptr);
727 allocation() noexcept : ptr(alloc()) {}
729 if (this->ptr) {
730 dealloc(this->ptr);
733 T *ptr;
737 Box<T>::Box(Box &&other) noexcept : ptr(other.ptr) {
738 other.ptr = nullptr;
744 ::new (alloc.ptr) T(val);
745 this->ptr = alloc.ptr;
746 alloc.ptr = nullptr;
752 ::new (alloc.ptr) T(std::move(val));
753 this->ptr = alloc.ptr;
754 alloc.ptr = nullptr;
759 if (this->ptr) {
766 if (this->ptr) {
769 this->ptr = other.ptr;
770 other.ptr = nullptr;
776 return this->ptr;
781 return *this->ptr;
786 return this->ptr;
791 return *this->ptr;
798 auto ptr = alloc.ptr;
799 ::new (ptr) T{std::forward<Fields>(fields)...};
800 alloc.ptr = nullptr;
801 return from_raw(ptr);
807 swap(this->ptr, rhs.ptr);
813 box.ptr = raw;
819 T *raw = this->ptr;
820 this->ptr = nullptr;