| /external/libcxx/test/support/ |
| deleter_types.h | 14 // Example move-only deleter 29 class Deleter 33 Deleter(const Deleter&); 34 Deleter& operator=(const Deleter&); 37 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} 38 Deleter& operator=(Deleter&& r [all...] |
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/support/ |
| deleter_types.h | 14 // Example move-only deleter 29 class Deleter 33 Deleter(const Deleter&); 34 Deleter& operator=(const Deleter&); 37 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} 38 Deleter& operator=(Deleter&& r [all...] |
| /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.dtor/ |
| null.pass.cpp | 14 // The deleter is not called if get() == 0 19 class Deleter { 22 Deleter(Deleter&); 23 Deleter& operator=(Deleter&); 26 Deleter() : state_(0) {} 35 Deleter d; 38 std::unique_ptr<T, Deleter&> p(nullptr, d);
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.dtor/ |
| null.pass.cpp | 14 // The deleter is not called if get() == 0 19 class Deleter { 22 Deleter(Deleter&); 23 Deleter& operator=(Deleter&); 26 Deleter() : state_(0) {} 35 Deleter d; 38 std::unique_ptr<T, Deleter&> p(nullptr, d);
|
| /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/ |
| get_deleter.pass.cpp | 20 struct Deleter { 21 Deleter() {} 33 std::unique_ptr<int, Deleter> p; 37 const std::unique_ptr<VT, Deleter> p; 41 typedef std::unique_ptr<VT, const Deleter&> UPtr; 42 const Deleter d; 45 ASSERT_SAME_TYPE(decltype(p.get_deleter()), const Deleter&); 46 ASSERT_SAME_TYPE(decltype(cp.get_deleter()), const Deleter&); 51 typedef std::unique_ptr<VT, Deleter&> UPtr; 52 Deleter d [all...] |
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/ |
| get_deleter.pass.cpp | 20 struct Deleter { 21 Deleter() {} 33 std::unique_ptr<int, Deleter> p; 37 const std::unique_ptr<VT, Deleter> p; 41 typedef std::unique_ptr<VT, const Deleter&> UPtr; 42 const Deleter d; 45 ASSERT_SAME_TYPE(decltype(p.get_deleter()), const Deleter&); 46 ASSERT_SAME_TYPE(decltype(cp.get_deleter()), const Deleter&); 51 typedef std::unique_ptr<VT, Deleter&> UPtr; 52 Deleter d [all...] |
| /external/deqp/external/vulkancts/framework/vulkan/ |
| vkRefUtilImpl.inl | 8 void Deleter<VkDeviceMemory>::operator() (VkDeviceMemory obj) const 14 void Deleter<VkFence>::operator() (VkFence obj) const 20 void Deleter<VkSemaphore>::operator() (VkSemaphore obj) const 26 void Deleter<VkEvent>::operator() (VkEvent obj) const 32 void Deleter<VkQueryPool>::operator() (VkQueryPool obj) const 38 void Deleter<VkBuffer>::operator() (VkBuffer obj) const 44 void Deleter<VkBufferView>::operator() (VkBufferView obj) const 50 void Deleter<VkImage>::operator() (VkImage obj) const 56 void Deleter<VkImageView>::operator() (VkImageView obj) const 62 void Deleter<VkShaderModule>::operator() (VkShaderModule obj) cons [all...] |
| vkRef.hpp | 74 class Deleter 77 Deleter (const DeviceInterface& deviceIface, VkDevice device, const VkAllocationCallbacks* allocator) 82 Deleter (void) 97 class Deleter<VkInstance> 100 Deleter (const PlatformInterface& platformIface, VkInstance instance, const VkAllocationCallbacks* allocator) 104 Deleter (void) 117 class Deleter<VkDevice> 120 Deleter (const InstanceInterface& instanceIface, VkDevice device, const VkAllocationCallbacks* allocator) 124 Deleter (void) 137 class Deleter<VkSurfaceKHR 240 Deleter<T> deleter; member in struct:vk::refdetails::RefData [all...] |
| /external/perfetto/src/base/ |
| page_allocator.cc | 44 return PageAllocator::UniquePtr(usable_region, PageAllocator::Deleter(size)); 49 PageAllocator::Deleter::Deleter() : Deleter(0) {} 50 PageAllocator::Deleter::Deleter(size_t size) : size_(size) {} 52 void PageAllocator::Deleter::operator()(void* ptr) const {
|
| /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.special/ |
| eq.pass.cpp | 51 const std::unique_ptr<A, Deleter<A> > p1(new A); 52 const std::unique_ptr<A, Deleter<A> > p2(new A); 57 const std::unique_ptr<A, Deleter<A> > p1(new A); 58 const std::unique_ptr<B, Deleter<B> > p2(new B); 63 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 64 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); 69 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 70 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); 75 const std::unique_ptr<A, Deleter<A> > p1; 76 const std::unique_ptr<A, Deleter<A> > p2 [all...] |
| rel.pass.cpp | 59 const std::unique_ptr<A, Deleter<A> > p1(new A); 60 const std::unique_ptr<A, Deleter<A> > p2(new A); 66 const std::unique_ptr<A, Deleter<A> > p1(new A); 67 const std::unique_ptr<B, Deleter<B> > p2(new B); 73 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 74 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); 80 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 81 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); 87 const std::unique_ptr<A, Deleter<A> > p1; 88 const std::unique_ptr<A, Deleter<A> > p2 [all...] |
| swap.pass.cpp | 52 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); 54 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); 73 std::unique_ptr<A[], Deleter<A[]> > s1(p1, Deleter<A[]>(1)); 75 std::unique_ptr<A[], Deleter<A[]> > s2(p2, Deleter<A[]>(2)); 90 // test that unique_ptr's specialized swap is disabled when the deleter
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.special/ |
| eq.pass.cpp | 51 const std::unique_ptr<A, Deleter<A> > p1(new A); 52 const std::unique_ptr<A, Deleter<A> > p2(new A); 57 const std::unique_ptr<A, Deleter<A> > p1(new A); 58 const std::unique_ptr<B, Deleter<B> > p2(new B); 63 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 64 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); 69 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 70 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); 75 const std::unique_ptr<A, Deleter<A> > p1; 76 const std::unique_ptr<A, Deleter<A> > p2 [all...] |
| rel.pass.cpp | 59 const std::unique_ptr<A, Deleter<A> > p1(new A); 60 const std::unique_ptr<A, Deleter<A> > p2(new A); 66 const std::unique_ptr<A, Deleter<A> > p1(new A); 67 const std::unique_ptr<B, Deleter<B> > p2(new B); 73 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 74 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); 80 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); 81 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); 87 const std::unique_ptr<A, Deleter<A> > p1; 88 const std::unique_ptr<A, Deleter<A> > p2 [all...] |
| swap.pass.cpp | 52 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); 54 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); 73 std::unique_ptr<A[], Deleter<A[]> > s1(p1, Deleter<A[]>(1)); 75 std::unique_ptr<A[], Deleter<A[]> > s2(p2, Deleter<A[]>(2)); 90 // test that unique_ptr's specialized swap is disabled when the deleter
|
| /external/deqp/framework/delibs/decpp/ |
| deUniquePtr.hpp | 44 PtrData (T* p, D d) : ptr(p), deleter(d) {} 47 PtrData (const PtrData<T2, D2>& d) : ptr(d.ptr), deleter(d.deleter) {} 50 D deleter; member in struct:de::details::PtrData 61 D getDeleter (void) const throw() { return m_data.deleter; } 67 UniqueBase (T* ptr, D deleter) : m_data(ptr, deleter) {} 90 m_data.deleter(m_data.ptr); 124 template<typename T, class Deleter = DefaultDeleter<T> > 125 class MovePtr : public UniqueBase<T, Deleter> [all...] |
| /external/perfetto/include/perfetto/base/ |
| page_allocator.h | 27 class Deleter { 29 Deleter(); 30 explicit Deleter(size_t); 37 using UniquePtr = std::unique_ptr<void, Deleter>;
|
| /external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
| pointer_deleter.fail.cpp | 10 // Without rvalue references it is impossible to detect when a rvalue deleter 22 struct Deleter { 27 // expected-error@+1 {{call to deleted constructor of 'std::unique_ptr<int, const Deleter &>}} 28 std::unique_ptr<int, const Deleter&> s((int*)nullptr, Deleter());
|
| default.pass.cpp | 18 // 1 The default constructor works for any default constructible deleter types. 22 // 1 Default construct unique_ptr's with various deleter types (C-1) 24 // various deleter types (C-1,2) 50 // the deleter is a pointer type 55 // the deleter is not default constructible 72 using U2 = std::unique_ptr<ElemType, Deleter<ElemType> >; 92 doIncompleteTypeTest<IncompleteType, Deleter<IncompleteType> >(0); 95 doIncompleteTypeTest<IncompleteType[], Deleter<IncompleteType[]> >(0);
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
| pointer_deleter.fail.cpp | 10 // Without rvalue references it is impossible to detect when a rvalue deleter 22 struct Deleter { 27 // expected-error@+1 {{call to deleted constructor of 'std::unique_ptr<int, const Deleter &>}} 28 std::unique_ptr<int, const Deleter&> s((int*)nullptr, Deleter());
|
| default.pass.cpp | 18 // 1 The default constructor works for any default constructible deleter types. 22 // 1 Default construct unique_ptr's with various deleter types (C-1) 24 // various deleter types (C-1,2) 50 // the deleter is a pointer type 55 // the deleter is not default constructible 72 using U2 = std::unique_ptr<ElemType, Deleter<ElemType> >; 92 doIncompleteTypeTest<IncompleteType, Deleter<IncompleteType> >(0); 95 doIncompleteTypeTest<IncompleteType[], Deleter<IncompleteType[]> >(0);
|
| /external/libchrome/base/ |
| sequenced_task_runner.cc | 22 void (*deleter)(const void*), 24 return PostNonNestableTask(from_here, Bind(deleter, object));
|
| /external/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/ |
| function_type_default_deleter.fail.cpp | 21 struct Deleter { 36 SPtr<2> s2(getFn<2>(), Deleter{}); // OK 37 SPtr<3> s3(nullptr, Deleter{}); // OK
|
| /external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/ |
| misc_utils.h | 19 // Custom deleter for wpabuf. 32 // Creates a unique_ptr for wpabuf ptr with a custom deleter. 38 // Creates a wpabuf ptr with a custom deleter copying the data from the provided
|
| /external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/ |
| misc_utils.h | 19 // Custom deleter for wpabuf. 32 // Creates a unique_ptr for wpabuf ptr with a custom deleter. 38 // Creates a wpabuf ptr with a custom deleter copying the data from the provided
|