| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.cons/ |
| H A D | copy_alloc.pass.cpp | 46 std::vector<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in tests() 47 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in tests() 49 assert(l2.get_allocator() == other_allocator<int>(3)); in tests() 53 std::vector<int, other_allocator<int> > l(other_allocator<int>(5)); in tests() 54 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in tests() 56 assert(l2.get_allocator() == other_allocator<int>(3)); in tests()
|
| H A D | move_alloc.pass.cpp | 62 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in tests() 63 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in tests() 73 … std::vector<MoveOnly, other_allocator<MoveOnly> > l2(std::move(l), other_allocator<MoveOnly>(4)); in tests() 76 assert(l2.get_allocator() == other_allocator<MoveOnly>(4)); in tests()
|
| H A D | assign_copy.pass.cpp | 29 std::vector<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in tests() 30 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in tests() 33 assert(l2.get_allocator() == other_allocator<int>(5)); in tests()
|
| H A D | assign_move.pass.cpp | 61 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in tests() 62 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in tests() 72 std::vector<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in tests()
|
| H A D | copy.pass.cpp | 63 std::vector<int, other_allocator<int> > v(3, 2, other_allocator<int>(5)); in tests() 64 std::vector<int, other_allocator<int> > v2 = v; in tests() 68 assert(v2.get_allocator() == other_allocator<int>(-2)); in tests()
|
| H A D | move.pass.cpp | 46 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in tests() 47 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in tests() 57 std::vector<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in tests()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector.bool/ |
| H A D | move_alloc.pass.cpp | 50 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in tests() 51 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in tests() 57 std::vector<bool, other_allocator<bool> > l2(std::move(l), other_allocator<bool>(4)); in tests() 60 assert(l2.get_allocator() == other_allocator<bool>(4)); in tests()
|
| H A D | assign_copy.pass.cpp | 29 std::vector<bool, other_allocator<bool> > l(3, true, other_allocator<bool>(5)); in tests() 30 std::vector<bool, other_allocator<bool> > l2(l, other_allocator<bool>(3)); in tests() 33 assert(l2.get_allocator() == other_allocator<bool>(5)); in tests()
|
| H A D | assign_move.pass.cpp | 52 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in tests() 53 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in tests() 59 std::vector<bool, other_allocator<bool> > l2(other_allocator<bool>(6)); in tests()
|
| H A D | copy_alloc.pass.cpp | 44 std::vector<bool, other_allocator<bool> > l(3, true, other_allocator<bool>(5)); in tests() 45 std::vector<bool, other_allocator<bool> > l2(l, other_allocator<bool>(3)); in tests() 47 assert(l2.get_allocator() == other_allocator<bool>(3)); in tests()
|
| H A D | move.pass.cpp | 38 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in tests() 39 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in tests() 45 std::vector<bool, other_allocator<bool> > l2 = std::move(l); in tests()
|
| H A D | copy.pass.cpp | 46 std::vector<bool, other_allocator<bool> > v(3, true, other_allocator<bool>(5)); in tests() 47 std::vector<bool, other_allocator<bool> > v2 = v; in tests() 49 assert(v2.get_allocator() == other_allocator<bool>(-2)); in tests()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/list/list.cons/ |
| H A D | copy_alloc.pass.cpp | 29 std::list<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in main() 30 std::list<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 32 assert(l2.get_allocator() == other_allocator<int>(3)); in main()
|
| H A D | assign_copy.pass.cpp | 29 std::list<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in main() 30 std::list<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 33 assert(l2.get_allocator() == other_allocator<int>(5)); in main()
|
| H A D | move_alloc.pass.cpp | 51 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 52 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 58 … std::list<MoveOnly, other_allocator<MoveOnly> > l2(std::move(l), other_allocator<MoveOnly>(4)); in main() 61 assert(l2.get_allocator() == other_allocator<MoveOnly>(4)); in main()
|
| H A D | assign_move.pass.cpp | 55 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 56 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 62 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() 63 std::list<MoveOnly, other_allocator<MoveOnly> >::iterator it = l.begin(); in main()
|
| H A D | move.pass.cpp | 40 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 41 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 47 std::list<MoveOnly, other_allocator<MoveOnly> >::iterator it = l.begin(); in main() 48 std::list<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in main()
|
| H A D | copy.pass.cpp | 36 std::list<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in main() 37 std::list<int, other_allocator<int> > l2 = l; in main() 39 assert(l2.get_allocator() == other_allocator<int>(-2)); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/deque.cons/ |
| H A D | op_equal.pass.cpp | 43 std::deque<int, other_allocator<int> > l(3, 2, other_allocator<int>(5)); in main() 44 std::deque<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 47 assert(l2.get_allocator() == other_allocator<int>(5)); in main()
|
| H A D | copy.pass.cpp | 43 std::deque<int, other_allocator<int> > v(3, 2, other_allocator<int>(5)); in main() 44 std::deque<int, other_allocator<int> > v2 = v; in main() 46 assert(v2.get_allocator() == other_allocator<int>(-2)); in main()
|
| H A D | copy_alloc.pass.cpp | 40 test(std::deque<int, other_allocator<int> >(ab, an, other_allocator<int>(3)), in main() 41 other_allocator<int>(4)); in main()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | test_allocator.h | 325 class other_allocator { 329 friend class other_allocator; variable 334 TEST_CONSTEXPR_CXX14 other_allocator() {} in other_allocator() function 335 TEST_CONSTEXPR_CXX14 explicit other_allocator(int i) : data_(i) {} in other_allocator() function 338 TEST_CONSTEXPR_CXX14 other_allocator(const other_allocator<U>& a) : data_(a.data_) {} in other_allocator() function 343 …TEST_CONSTEXPR_CXX14 other_allocator select_on_container_copy_construction() const { return other_… in select_on_container_copy_construction() 345 TEST_CONSTEXPR_CXX14 friend bool operator==(const other_allocator& x, const other_allocator& y) { 349 …TEST_CONSTEXPR_CXX14 friend bool operator!=(const other_allocator& x, const other_allocator& y) { …
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/ |
| H A D | get_allocator.pass.cpp | 28 other_allocator<int> alloc(1); in main() 29 const std::deque<int, other_allocator<int> > d(alloc); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/forwardlist/ |
| H A D | get_allocator.pass.cpp | 28 other_allocator<int> alloc(1); in main() 29 const std::forward_list<int, other_allocator<int> > fl(alloc); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/list/ |
| H A D | get_allocator.pass.cpp | 28 other_allocator<int> alloc(1); in main() 29 const std::list<int, other_allocator<int> > l(alloc); in main()
|