Home
last modified time | relevance | path

Searched refs:ptr_ (Results 1 – 9 of 9) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
Dmin_allocator.h26 const void* ptr_; variable
29 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer()
31 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer()
33 explicit operator bool() const {return ptr_ != nullptr;}
35 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
43 void* ptr_; variable
46 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer()
53 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer()
55 explicit operator bool() const {return ptr_ != nullptr;}
57 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
[all …]
/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_util.cpp29 Assign(other.ptr_, other.size_); in String()
43 if (ptr_ != const_cast<char*>(kEmpty)) { in ~String()
44 free(ptr_); in ~String()
45 ptr_ = const_cast<char*>(kEmpty); in ~String()
57 memcpy(ptr_, str, len); in Assign()
58 ptr_[len] = '\0'; in Assign()
67 memcpy(ptr_ + old_size, str, len); in Append()
81 memset(ptr_ + size_, '\0', new_size - size_); in Resize()
84 if (ptr_ != kEmpty) in Resize()
85 ptr_[size_] = '\0'; in Resize()
[all …]
Dcrazy_linker_util.h27 ScopedPtr() : ptr_(NULL) {} in ScopedPtr()
28 explicit ScopedPtr(T* ptr) : ptr_(ptr) {} in ScopedPtr()
32 T* ret = ptr_; in Release()
33 ptr_ = NULL; in Release()
38 if (ptr_) in Reset()
39 delete ptr_; in Reset() local
40 ptr_ = ptr; in Reset()
43 T* Get() { return ptr_; } in Get()
44 T& operator*() { return *ptr_; }
45 T* operator->() { return ptr_; }
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/
Dstack_allocator.h20 char* ptr_; variable
32 stack_allocator() : ptr_(buf_) {} in stack_allocator()
41 if (n > N - (ptr_ - buf_) / sizeof(value_type)) {
48 pointer r = (T*)ptr_;
49 ptr_ += n * sizeof(T);
54 if ((char*)(p + n) == ptr_) in deallocate()
55 ptr_ = (char*)p; in deallocate()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/
Dreset_self.pass.cpp20 std::unique_ptr<A> ptr_; member
22 A() : ptr_(this) {} in A()
23 void reset() {ptr_.reset();} in reset()
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/
Dcxa_vector.cpp47 : dealloc_ ( dealloc ), ptr_ ( ptr ), enabled_ ( true ) {} in st_heap_block2()
48 ~st_heap_block2 () { if ( enabled_ ) dealloc_ ( ptr_ ) ; } in ~st_heap_block2()
53 void *ptr_; member in __cxxabiv1::__anond83136650111::st_heap_block2
62 : dealloc_ ( dealloc ), ptr_ ( ptr ), size_ ( size ), enabled_ ( true ) {} in st_heap_block3()
63 ~st_heap_block3 () { if ( enabled_ ) dealloc_ ( ptr_, size_ ) ; } in ~st_heap_block3()
68 void *ptr_; member in __cxxabiv1::__anond83136650111::st_heap_block3
78 : ptr_ ( ptr ), idx_ ( idx ), element_size_ ( element_size ), in st_cxa_cleanup()
82 __cxa_vec_cleanup ( ptr_, idx_, element_size_, destructor_ ); in ~st_cxa_cleanup()
88 void *ptr_; member in __cxxabiv1::__anond83136650111::st_cxa_cleanup
Dcxa_demangle.cpp4710 char* ptr_; member in __cxxabiv1::__anon1106586f0111::arena
4721 arena() noexcept : ptr_(buf_) {} in arena()
4722 ~arena() {ptr_ = nullptr;} in ~arena()
4730 std::size_t used() const {return static_cast<std::size_t>(ptr_ - buf_);} in used()
4731 void reset() {ptr_ = buf_;} in reset()
4739 if (static_cast<std::size_t>(buf_ + N - ptr_) >= n) in allocate()
4741 char* r = ptr_; in allocate()
4742 ptr_ += n; in allocate()
4755 if (p + n == ptr_) in deallocate()
4756 ptr_ = p; in deallocate()
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/
Dgtest-port.h894 explicit scoped_ptr(T* p = NULL) : ptr_(p) {}
897 T& operator*() const { return *ptr_; }
898 T* operator->() const { return ptr_; }
899 T* get() const { return ptr_; }
902 T* const ptr = ptr_;
903 ptr_ = NULL;
908 if (p != ptr_) {
910 delete ptr_;
912 ptr_ = p;
917 T* ptr_;
/ndk/sources/cxx-stl/gabi++/src/
Dcxxabi_vec.cc51 : ptr_(ptr), size_(size), dealloc_(dealloc) {} in scoped_block()
55 dealloc_(ptr_, size_); in ~scoped_block()
63 void* ptr_; member in __anonc22251360111::scoped_block