Home
last modified time | relevance | path

Searched refs:UniquePtr (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/private/
DUniquePtr.h48 class UniquePtr {
51 explicit UniquePtr(T* ptr = nullptr) : mPtr(ptr) { }
53 UniquePtr(UniquePtr<T, D>&& that) {
58 ~UniquePtr() {
90 template <typename T2> bool operator==(const UniquePtr<T2>& p) const = delete;
91 template <typename T2> bool operator!=(const UniquePtr<T2>& p) const = delete;
94 UniquePtr(const UniquePtr&) = delete;
95 void operator=(const UniquePtr&) = delete;
101 class UniquePtr<T[], D> {
103 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
[all …]
/bionic/tests/
Duniqueptr_test.cpp36 TEST(UniquePtr, smoke) { in TEST() argument
43 UniquePtr<C> c(new C); in TEST()
50 UniquePtr<C> c(new C); in TEST()
58 UniquePtr<C> c(new C); in TEST()
71 UniquePtr<C[]> cs(new C[4]); in TEST()
77 UniquePtr<C[]> c(new C[4]); in TEST()
85 UniquePtr<C[]> c(new C[4]); in TEST()
97 UniquePtr<int, Freer> i(reinterpret_cast<int*>(malloc(sizeof(int)))); in TEST()