/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/ |
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 | 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_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_convert.pass.cpp | 169 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/ |
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()
|
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_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_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_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_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()
|
/external/libcxx/test/std/utilities/memory/unique.ptr/ |
D | deleter.h | 167 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/ |
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()
|