Home
last modified time | relevance | path

Searched refs:CDeleter (Results 1 – 19 of 19) sorted by relevance

/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/
Dmove_convert09.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 const std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2(s); in main()
Dmove_convert15.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2(std::move(s)); in main()
Dmove_convert18.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2 = std::move(s); in main()
Dmove_convert03.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2(s); in main()
Dmove_convert12.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 const std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2 = s; in main()
Dmove_convert06.fail.cpp45 class CDeleter class
49 CDeleter(CDeleter&);
50 CDeleter& operator=(CDeleter&);
53 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
64 CDeleter<A> d; in main()
65 std::unique_ptr<B[], CDeleter<A>&> s(new B, d); in main()
67 std::unique_ptr<A[], CDeleter<A>&> s2 = s; in main()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dmove_convert03.pass.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2(std::move(s)); in main()
Dmove_convert09.fail.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 const std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2(s); in main()
Dmove_convert03.fail.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2(s); in main()
Dmove_convert06.pass.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2 = std::move(s); in main()
Dmove_convert06.fail.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2 = s; in main()
Dmove_convert12.fail.cpp46 class CDeleter class
50 CDeleter(CDeleter&);
51 CDeleter& operator=(CDeleter&);
54 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
65 CDeleter<A> d; in main()
66 const std::unique_ptr<B, CDeleter<A>&> s(new B, d); in main()
68 std::unique_ptr<A, CDeleter<A>&> s2 = s; in main()
Dmove02.pass.cpp90 class CDeleter class
94 CDeleter(CDeleter&);
95 CDeleter& operator=(CDeleter&);
98 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
126 std::unique_ptr<A, CDeleter&>
129 static CDeleter d; in source3()
130 return std::unique_ptr<A, CDeleter&>(new A, d); in source3()
133 void sink3(std::unique_ptr<A, CDeleter&> p) in sink3()
Dmove01.pass.cpp91 class CDeleter class
95 CDeleter(CDeleter&);
96 CDeleter& operator=(CDeleter&);
99 CDeleter() : state_(5) {} in CDeleter() function in CDeleter
130 CDeleter d; in main()
131 std::unique_ptr<A, CDeleter&> s(new A, d); in main()
133 std::unique_ptr<A, CDeleter&> s2 = std::move(s); in main()
Dmove_convert07.pass.cpp50 CDeleter<B> b(5); in main()
51 std::unique_ptr<B, CDeleter<B>&> s(new B, b); in main()
53 std::unique_ptr<A, CDeleter<A> > s2 = std::move(s); in main()
/external/libcxx/test/std/utilities/memory/unique.ptr/
Ddeleter.h136 class CDeleter
142 CDeleter() : state_(0) {} in CDeleter() function
143 explicit CDeleter(int s) : state_(s) {} in CDeleter() function
144 ~CDeleter() {assert(state_ >= 0); state_ = -1;} in ~CDeleter()
147 CDeleter(const CDeleter<U>& d) in CDeleter() function
157 class CDeleter<T[]>
163 CDeleter() : state_(0) {} in CDeleter() function
164 explicit CDeleter(int s) : state_(s) {} in CDeleter() function
165 ~CDeleter() {assert(state_ >= 0); state_ = -1;} in ~CDeleter()
175 swap(CDeleter<T>& x, CDeleter<T>& y) in swap()
[all …]
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.asgn/
Dmove_convert03.pass.cpp48 CDeleter<B> db(5); in main()
49 std::unique_ptr<B, CDeleter<B>&> s(new B, db); in main()
51 CDeleter<A> da(6); in main()
52 std::unique_ptr<A, CDeleter<A>&> s2(new A, da); in main()
Dmove01.pass.cpp62 CDeleter<A> d1(5); in main()
63 std::unique_ptr<A, CDeleter<A>&> s1(new A, d1); in main()
65 CDeleter<A> d2(6); in main()
66 std::unique_ptr<A, CDeleter<A>&> s2(new A, d2); in main()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/
Dmove01.pass.cpp64 CDeleter<A[]> d1(5); in main()
65 std::unique_ptr<A[], CDeleter<A[]>&> s1(new A[6], d1); in main()
68 CDeleter<A[]> d2(6); in main()
69 std::unique_ptr<A[], CDeleter<A[]>&> s2(new A[3], d2); in main()