Home
last modified time | relevance | path

Searched refs:other_allocator (Results 1 – 25 of 157) sorted by relevance

1234567

/llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dcopy_alloc.pass.cpp46 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 Dmove_alloc.pass.cpp62 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 Dassign_copy.pass.cpp29 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 Dassign_move.pass.cpp61 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 Dcopy.pass.cpp63 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 Dmove.pass.cpp46 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 Dmove_alloc.pass.cpp50 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 Dassign_copy.pass.cpp29 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 Dassign_move.pass.cpp52 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 Dcopy_alloc.pass.cpp44 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 Dmove.pass.cpp38 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 Dcopy.pass.cpp46 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 Dcopy_alloc.pass.cpp29 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 Dassign_copy.pass.cpp29 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 Dmove_alloc.pass.cpp51 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 Dassign_move.pass.cpp55 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 Dmove.pass.cpp40 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 Dcopy.pass.cpp36 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 Dop_equal.pass.cpp43 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 Dcopy.pass.cpp43 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 Dcopy_alloc.pass.cpp40 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 Dtest_allocator.h325 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 Dget_allocator.pass.cpp28 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 Dget_allocator.pass.cpp28 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 Dget_allocator.pass.cpp28 other_allocator<int> alloc(1); in main()
29 const std::list<int, other_allocator<int> > l(alloc); in main()

1234567