/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | alloc_const_Types.pass.cpp | 55 assert(!alloc_first::allocator_constructed); in main() 56 std::tuple<alloc_first> t(std::allocator_arg, A1<int>(5), alloc_first(3)); in main() 57 assert(alloc_first::allocator_constructed); in main() 58 assert(std::get<0>(t) == alloc_first(3)); in main() 67 alloc_first::allocator_constructed = false; in main() 68 std::tuple<int, alloc_first> t(std::allocator_arg, A1<int>(5), in main() 69 10, alloc_first(15)); in main() 71 assert(alloc_first::allocator_constructed); in main() 72 assert(std::get<1>(t) == alloc_first(15)); in main() 75 alloc_first::allocator_constructed = false; in main() [all …]
|
D | alloc.pass.cpp | 57 assert(!alloc_first::allocator_constructed); in main() 58 std::tuple<alloc_first> t(std::allocator_arg, A1<int>(5)); in main() 59 assert(alloc_first::allocator_constructed); in main() 60 assert(std::get<0>(t) == alloc_first()); in main() 69 alloc_first::allocator_constructed = false; in main() 70 std::tuple<DefaultOnly, alloc_first> t(std::allocator_arg, A1<int>(5)); in main() 72 assert(alloc_first::allocator_constructed); in main() 73 assert(std::get<1>(t) == alloc_first()); in main() 76 alloc_first::allocator_constructed = false; in main() 78 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, in main() [all …]
|
D | alloc_copy.pass.cpp | 40 typedef std::tuple<alloc_first> T; in main() 42 alloc_first::allocator_constructed = false; in main() 44 assert(alloc_first::allocator_constructed); in main() 58 typedef std::tuple<alloc_first, alloc_last> T; in main() 60 alloc_first::allocator_constructed = false; in main() 63 assert(alloc_first::allocator_constructed); in main() 69 typedef std::tuple<int, alloc_first, alloc_last> T; in main() 71 alloc_first::allocator_constructed = false; in main() 74 assert(alloc_first::allocator_constructed); in main()
|
D | alloc_move.pass.cpp | 41 typedef std::tuple<alloc_first> T; in main() 43 alloc_first::allocator_constructed = false; in main() 45 assert(alloc_first::allocator_constructed); in main() 59 typedef std::tuple<MoveOnly, alloc_first> T; in main() 61 alloc_first::allocator_constructed = false; in main() 63 assert(alloc_first::allocator_constructed); in main() 68 typedef std::tuple<MoveOnly, alloc_first, alloc_last> T; in main() 70 alloc_first::allocator_constructed = false; in main() 73 assert(alloc_first::allocator_constructed); in main()
|
D | alloc_convert_copy.pass.cpp | 48 typedef std::tuple<alloc_first> T1; in main() 50 alloc_first::allocator_constructed = false; in main() 52 assert(alloc_first::allocator_constructed); in main() 57 typedef std::tuple<alloc_first, alloc_last> T1; in main() 59 alloc_first::allocator_constructed = false; in main() 62 assert(alloc_first::allocator_constructed); in main() 69 typedef std::tuple<long long, alloc_first, alloc_last> T1; in main() 71 alloc_first::allocator_constructed = false; in main() 74 assert(alloc_first::allocator_constructed); in main()
|
D | alloc_convert_move.pass.cpp | 57 typedef std::tuple<alloc_first> T1; in main() 59 alloc_first::allocator_constructed = false; in main() 61 assert(alloc_first::allocator_constructed); in main() 73 typedef std::tuple<alloc_first, std::unique_ptr<B>> T1; in main() 75 alloc_first::allocator_constructed = false; in main() 77 assert(alloc_first::allocator_constructed); in main() 83 typedef std::tuple<alloc_last, alloc_first, std::unique_ptr<B>> T1; in main() 85 alloc_first::allocator_constructed = false; in main() 88 assert(alloc_first::allocator_constructed); in main()
|
D | alloc_const_pair.pass.cpp | 39 typedef std::tuple<alloc_first, double> T1; in main() 41 alloc_first::allocator_constructed = false; in main() 43 assert(alloc_first::allocator_constructed); in main() 49 typedef std::tuple<alloc_first, alloc_last> T1; in main() 51 alloc_first::allocator_constructed = false; in main() 54 assert(alloc_first::allocator_constructed); in main()
|
D | alloc_UTypes.pass.cpp | 124 alloc_first::allocator_constructed = false; in main() 126 std::tuple<int, alloc_first, alloc_last> t(std::allocator_arg, in main() 129 assert(alloc_first::allocator_constructed); in main() 130 assert(std::get<1>(t) == alloc_first(2)); in main() 138 alloc_first::allocator_constructed = false; in main() 140 std::tuple<int, alloc_first, alloc_last> t(tag, in main() 143 assert(alloc_first::allocator_constructed); in main() 144 assert(std::get<1>(t) == alloc_first(2)); in main()
|
D | alloc_move_pair.pass.cpp | 47 typedef std::tuple<alloc_first, std::unique_ptr<B>> T1; in main() 49 alloc_first::allocator_constructed = false; in main() 51 assert(alloc_first::allocator_constructed); in main()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/ |
D | alloc_first.h | 17 struct alloc_first struct 25 alloc_first() : data_(0) {} in alloc_first() function 26 alloc_first(int d) : data_(d) {} in alloc_first() argument 27 alloc_first(std::allocator_arg_t, const A1<int>& a) in alloc_first() argument 34 alloc_first(std::allocator_arg_t, const A1<int>& a, int d) in alloc_first() function 41 alloc_first(std::allocator_arg_t, const A1<int>& a, const alloc_first& d) in alloc_first() function 48 ~alloc_first() {data_ = -1;} in ~alloc_first() argument 50 friend bool operator==(const alloc_first& x, const alloc_first& y) 52 friend bool operator< (const alloc_first& x, const alloc_first& y) 56 bool alloc_first::allocator_constructed = false;
|