Home
last modified time | relevance | path

Searched refs:Deleter (Results 1 – 25 of 128) sorted by relevance

123456

/external/deqp/framework/delibs/decpp/
DdeUniquePtr.hpp124 template<typename T, class Deleter = DefaultDeleter<T> >
125 class MovePtr : public UniqueBase<T, Deleter>
128 MovePtr (void) : UniqueBase<T, Deleter> (DE_NULL, Deleter()) {} in MovePtr()
129 …explicit MovePtr (T* ptr, Deleter deleter = Deleter()) : UniqueBase<T, Deleter> (ptr, deleter) … in MovePtr()
130 MovePtr (MovePtr<T, Deleter>& other) : UniqueBase<T, Deleter> (other.releaseData()) {} in MovePtr()
132 MovePtr& operator= (MovePtr<T, Deleter>& other);
140 MovePtr (PtrData<T, Deleter> data) : UniqueBase<T, Deleter> (data) {} in MovePtr()
141 MovePtr& operator= (PtrData<T, Deleter> data);
200 template<typename T, class Deleter = DefaultDeleter<T> >
201 class UniquePtr : public UniqueBase<T, Deleter>
[all …]
/external/libcxx/test/support/
Ddeleter_types.h29 class Deleter
33 Deleter(const Deleter&);
34 Deleter& operator=(const Deleter&);
37 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() function
38 Deleter& operator=(Deleter&& r)
46 Deleter() : state_(0) {} in Deleter() function
47 explicit Deleter(int s) : state_(s) {} in Deleter() function
48 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter()
51 Deleter(Deleter<U>&& d,
57 Deleter(const Deleter<U>& d,
[all …]
/external/llvm-project/libcxx/test/support/
Ddeleter_types.h28 class Deleter
32 Deleter(const Deleter&);
33 Deleter& operator=(const Deleter&);
36 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() function
37 Deleter& operator=(Deleter&& r)
45 Deleter() : state_(0) {} in Deleter() function
46 explicit Deleter(int s) : state_(s) {} in Deleter() function
47 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter()
50 Deleter(Deleter<U>&& d,
56 Deleter(const Deleter<U>& d,
[all …]
/external/libtextclassifier/native/utils/java/
Djni-base.h129 template <typename T, typename Env, typename Deleter>
132 ScopedRef() : ptr_(nullptr, Deleter(nullptr)) {} in ScopedRef()
133 ScopedRef(T value, Env* env) : ptr_(value, Deleter(env)) {} in ScopedRef()
147 ptr_.get_deleter() = Deleter(env); in reset()
151 std::unique_ptr<typename std::remove_pointer<T>::type, Deleter> ptr_;
154 template <typename T, typename U, typename Env, typename Deleter>
155 inline bool operator==(const ScopedRef<T, Env, Deleter>& x,
156 const ScopedRef<U, Env, Deleter>& y) {
160 template <typename T, typename Env, typename Deleter>
161 inline bool operator==(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
[all …]
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-base.h127 template <typename T, typename Env, typename Deleter>
130 ScopedRef() : ptr_(nullptr, Deleter(nullptr)) {} in ScopedRef()
131 ScopedRef(T value, Env* env) : ptr_(value, Deleter(env)) {} in ScopedRef()
145 ptr_.get_deleter() = Deleter(env); in reset()
149 std::unique_ptr<typename std::remove_pointer<T>::type, Deleter> ptr_;
152 template <typename T, typename U, typename Env, typename Deleter>
153 inline bool operator==(const ScopedRef<T, Env, Deleter>& x,
154 const ScopedRef<U, Env, Deleter>& y) {
158 template <typename T, typename Env, typename Deleter>
159 inline bool operator==(const ScopedRef<T, Env, Deleter>& x, std::nullptr_t) {
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkRef.hpp74 class Deleter class
77Deleter (const DeviceInterface& deviceIface, VkDevice device, const VkAllocationCallbacks* alloca… in Deleter() function in vk::refdetails::Deleter
82 Deleter (void) in Deleter() function in vk::refdetails::Deleter
97 class Deleter<VkInstance> class
100Deleter (const PlatformInterface& platformIface, VkInstance instance, const VkAllocationCallbacks… in Deleter() function in vk::refdetails::Deleter
104 Deleter (void) in Deleter() function in vk::refdetails::Deleter
117 class Deleter<VkDevice> class
120Deleter (const PlatformInterface& platformIface, VkInstance instance, VkDevice device, const VkAl… in Deleter() function in vk::refdetails::Deleter
126 Deleter (void) in Deleter() function in vk::refdetails::Deleter
139 class Deleter<VkSurfaceKHR> class
[all …]
DvkRefUtilImpl.inl8 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) const
[all …]
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/
Dget_deleter.pass.cpp19 struct Deleter { struct
20 Deleter() {} in Deleter() argument
32 std::unique_ptr<int, Deleter> p; in test_basic() argument
36 const std::unique_ptr<VT, Deleter> p; in test_basic()
40 typedef std::unique_ptr<VT, const Deleter&> UPtr; in test_basic()
41 const Deleter d; in test_basic()
44 ASSERT_SAME_TYPE(decltype(p.get_deleter()), const Deleter&); in test_basic()
45 ASSERT_SAME_TYPE(decltype(cp.get_deleter()), const Deleter&); in test_basic()
50 typedef std::unique_ptr<VT, Deleter&> UPtr; in test_basic()
51 Deleter d; in test_basic()
[all …]
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/
Dget_deleter.pass.cpp20 struct Deleter { struct
21 Deleter() {} in Deleter() function
33 std::unique_ptr<int, Deleter> p; in test_basic() argument
37 const std::unique_ptr<VT, Deleter> p; in test_basic()
41 typedef std::unique_ptr<VT, const Deleter&> UPtr; in test_basic()
42 const Deleter d; in test_basic()
45 ASSERT_SAME_TYPE(decltype(p.get_deleter()), const Deleter&); in test_basic()
46 ASSERT_SAME_TYPE(decltype(cp.get_deleter()), const Deleter&); in test_basic()
51 typedef std::unique_ptr<VT, Deleter&> UPtr; in test_basic()
52 Deleter d; in test_basic()
[all …]
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.special/
Deq.pass.cpp51 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
52 const std::unique_ptr<A, Deleter<A> > p2(new A); in main()
57 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
58 const std::unique_ptr<B, Deleter<B> > p2(new B); in main()
63 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
64 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main()
69 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
70 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main()
75 const std::unique_ptr<A, Deleter<A> > p1; in main()
76 const std::unique_ptr<A, Deleter<A> > p2; in main()
[all …]
Drel.pass.cpp59 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
60 const std::unique_ptr<A, Deleter<A> > p2(new A); in main()
66 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
67 const std::unique_ptr<B, Deleter<B> > p2(new B); in main()
73 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
74 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main()
80 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
81 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main()
87 const std::unique_ptr<A, Deleter<A> > p1; in main()
88 const std::unique_ptr<A, Deleter<A> > p2; in main()
[all …]
Dswap.pass.cpp52 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); in main()
54 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); in main()
73 std::unique_ptr<A[], Deleter<A[]> > s1(p1, Deleter<A[]>(1)); in main()
75 std::unique_ptr<A[], Deleter<A[]> > s2(p2, Deleter<A[]>(2)); in main()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.special/
Deq.pass.cpp51 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
52 const std::unique_ptr<A, Deleter<A> > p2(new A); in main()
57 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
58 const std::unique_ptr<B, Deleter<B> > p2(new B); in main()
63 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
64 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main()
69 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
70 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main()
75 const std::unique_ptr<A, Deleter<A> > p1; in main()
76 const std::unique_ptr<A, Deleter<A> > p2; in main()
[all …]
Drel.pass.cpp59 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
60 const std::unique_ptr<A, Deleter<A> > p2(new A); in main()
66 const std::unique_ptr<A, Deleter<A> > p1(new A); in main()
67 const std::unique_ptr<B, Deleter<B> > p2(new B); in main()
73 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
74 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main()
80 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main()
81 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main()
87 const std::unique_ptr<A, Deleter<A> > p1; in main()
88 const std::unique_ptr<A, Deleter<A> > p2; in main()
[all …]
Dswap.pass.cpp51 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); in main()
53 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); in main()
72 std::unique_ptr<A[], Deleter<A[]> > s1(p1, Deleter<A[]>(1)); in main()
74 std::unique_ptr<A[], Deleter<A[]> > s2(p2, Deleter<A[]>(2)); in main()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.dtor/
Dnull.pass.cpp20 class Deleter { class
23 Deleter(Deleter&);
24 Deleter& operator=(Deleter&);
27 Deleter() : state_(0) {} in Deleter() function in Deleter
36 Deleter d; in test_basic()
39 std::unique_ptr<T, Deleter&> p(nullptr, d); in test_basic()
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.dtor/
Dnull.pass.cpp19 class Deleter { class
22 Deleter(Deleter&);
23 Deleter& operator=(Deleter&);
26 Deleter() : state_(0) {} in Deleter() function in Deleter
35 Deleter d; in test_basic()
38 std::unique_ptr<T, Deleter&> p(nullptr, d); in test_basic()
/external/llvm-project/flang/tools/f18-parse-demo/
Dstub-evaluate.cpp16 static void Deleter(GenericExprWrapper *);
18 void GenericExprWrapper::Deleter(GenericExprWrapper *) {} in Deleter() function in Fortran::evaluate::GenericExprWrapper
20 static void Deleter(GenericAssignmentWrapper *);
22 void GenericAssignmentWrapper::Deleter(GenericAssignmentWrapper *) {} in Deleter() function in Fortran::evaluate::GenericAssignmentWrapper
24 static void Deleter(ProcedureRef *);
26 void ProcedureRef::Deleter(ProcedureRef *) {} in Deleter() function in Fortran::evaluate::ProcedureRef
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/
Dmain.cpp4 struct Deleter { struct
21 std::unique_ptr<char, Deleter> ndp; in main() argument
22 std::unique_ptr<int, Deleter> idp(new int{456}, Deleter{1, 2}); in main()
23 std::unique_ptr<std::string, Deleter> sdp(new std::string("baz"), in main()
24 Deleter{3, 4}); in main()
/external/llvm-project/clang/test/CodeGenCXX/
DPR42665.cpp12 template <typename Deleter>
15 Deleter second;
18 template <typename Deleter>
19 Pair(Foo, Deleter) -> Pair<Deleter>;
/external/scudo/standalone/tests/
Dtsd_test.cpp66 auto Deleter = [](AllocatorT *A) { in TEST() local
70 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST()
71 Deleter); in TEST()
81 auto Deleter = [](AllocatorT *A) { in testRegistry() local
85 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistry()
86 Deleter); in testRegistry()
150 auto Deleter = [](AllocatorT *A) { in testRegistryThreaded() local
154 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistryThreaded()
155 Deleter); in testRegistryThreaded()
206 auto Deleter = [](AllocatorT *A) { in TEST() local
[all …]
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dtsd_test.cpp66 auto Deleter = [](AllocatorT *A) { in TEST() local
70 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST()
71 Deleter); in TEST()
81 auto Deleter = [](AllocatorT *A) { in testRegistry() local
85 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistry()
86 Deleter); in testRegistry()
150 auto Deleter = [](AllocatorT *A) { in testRegistryThreaded() local
154 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistryThreaded()
155 Deleter); in testRegistryThreaded()
205 auto Deleter = [](AllocatorT *A) { in TEST() local
[all …]
/external/zstd/contrib/pzstd/utils/
DResourcePool.h33 class Deleter;
36 using UniquePtr = std::unique_ptr<T, Deleter>;
62 UniquePtr resource{resources_.back(), Deleter{*this}}; in get()
67 UniquePtr resource{factory_(), Deleter{*this}}; in get()
79 class Deleter {
82 explicit Deleter(ResourcePool &pool) : pool_(&pool) {} in Deleter() function
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dpod_array.h22 : ptr_(std::allocator<T>().allocate(len), Deleter(len)) {} in PODArray()
37 struct Deleter { struct
38 Deleter() in Deleter() argument
40 explicit Deleter(int len) in Deleter() function
50 std::unique_ptr<T[], Deleter> ptr_; argument
/external/libchrome/base/containers/
Dunique_ptr_adapters.h59 template <class T, class Deleter = std::default_delete<T>>
63 bool operator()(const std::unique_ptr<T, Deleter>& o) { in operator()
71 template <class T, class Deleter = std::default_delete<T>>
72 UniquePtrMatcher<T, Deleter> MatchesUniquePtr(T* t) { in MatchesUniquePtr()
73 return UniquePtrMatcher<T, Deleter>(t); in MatchesUniquePtr()

123456