Home
last modified time | relevance | path

Searched refs:CopyDeleter (Results 1 – 3 of 3) sorted by relevance

/external/libcxx/test/support/
Ddeleter_types.h293 class CopyDeleter
298 CopyDeleter() : state_(0) {} in CopyDeleter() function
299 explicit CopyDeleter(int s) : state_(s) {} in CopyDeleter() function
300 ~CopyDeleter() {assert(state_ >= 0); state_ = -1;} in ~CopyDeleter()
302 CopyDeleter(CopyDeleter const& other) : state_(other.state_) {} in CopyDeleter() function
303 CopyDeleter& operator=(CopyDeleter const& other) {
316 class CopyDeleter<T[]>
322 CopyDeleter() : state_(0) {} in CopyDeleter() function
323 explicit CopyDeleter(int s) : state_(s) {} in CopyDeleter() function
324 ~CopyDeleter() {assert(state_ >= 0); state_ = -1;} in ~CopyDeleter()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/
Dhash_unique_ptr.pass.cpp77 test_enabled_with_deleter<int, CopyDeleter<int>>(); in main()
78 test_enabled_with_deleter<int, CopyDeleter<int[]>>(); in main()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dpointer_deleter.pass.cpp73 CopyDeleter<A> d(5); in main()
74 std::unique_ptr<A, CopyDeleter<A> > s(p, d); in main()