Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
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()
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_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_convert.pass.cpp169 typedef std::unique_ptr<A, CDeleter<A> > APtr;
170 typedef std::unique_ptr<B, CDeleter<B>& > BPtr;
171 CDeleter<B> del(5);
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/
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()
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_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_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_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_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()
/external/libcxx/test/std/utilities/memory/unique.ptr/
Ddeleter.h167 class CDeleter
173 CDeleter() : state_(0) {} in CDeleter() function
174 explicit CDeleter(int s) : state_(s) {} in CDeleter() function
175 ~CDeleter() {assert(state_ >= 0); state_ = -1;} in ~CDeleter()
178 CDeleter(const CDeleter<U>& d) in CDeleter() function
188 class CDeleter<T[]>
194 CDeleter() : state_(0) {} in CDeleter() function
195 explicit CDeleter(int s) : state_(s) {} in CDeleter() function
196 ~CDeleter() {assert(state_ >= 0); state_ = -1;} in ~CDeleter()
206 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()