/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/ |
D | move_convert09.fail.cpp | 45 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()
|
D | move_convert15.fail.cpp | 45 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()
|
D | move_convert18.fail.cpp | 45 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()
|
D | move_convert03.fail.cpp | 45 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()
|
D | move_convert12.fail.cpp | 45 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()
|
D | move_convert06.fail.cpp | 45 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/ |
D | move_convert03.pass.cpp | 46 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()
|
D | move_convert09.fail.cpp | 46 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()
|
D | move_convert03.fail.cpp | 46 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()
|
D | move_convert06.pass.cpp | 46 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()
|
D | move_convert06.fail.cpp | 46 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()
|
D | move_convert12.fail.cpp | 46 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()
|
D | move02.pass.cpp | 90 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()
|
D | move01.pass.cpp | 91 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()
|
D | move_convert07.pass.cpp | 50 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/ |
D | deleter.h | 136 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/ |
D | move_convert03.pass.cpp | 48 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()
|
D | move01.pass.cpp | 62 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/ |
D | move01.pass.cpp | 64 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()
|