/external/libcxx/test/std/containers/ |
D | Emplaceable.h | 18 class Emplaceable 20 Emplaceable(const Emplaceable&); 21 Emplaceable& operator=(const Emplaceable&); 26 Emplaceable() : int_(0), double_(0) {} in Emplaceable() function 27 Emplaceable(int i, double d) : int_(i), double_(d) {} in Emplaceable() function 28 Emplaceable(Emplaceable&& x) in Emplaceable() function 31 Emplaceable& operator=(Emplaceable&& x) 36 bool operator==(const Emplaceable& x) const 38 bool operator<(const Emplaceable& x) const 47 struct hash<Emplaceable> [all …]
|
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/ |
D | emplace_after.pass.cpp | 26 typedef Emplaceable T; in main() 32 assert(c.front() == Emplaceable()); in main() 37 assert(c.front() == Emplaceable()); in main() 38 assert(*next(c.begin()) == Emplaceable(1, 2.5)); in main() 43 assert(c.front() == Emplaceable()); in main() 44 assert(*next(c.begin()) == Emplaceable(1, 2.5)); in main() 45 assert(*next(c.begin(), 2) == Emplaceable(2, 3.5)); in main() 50 assert(c.front() == Emplaceable()); in main() 51 assert(*next(c.begin(), 1) == Emplaceable(3, 4.5)); in main() 52 assert(*next(c.begin(), 2) == Emplaceable(1, 2.5)); in main() [all …]
|
D | emplace_front.pass.cpp | 28 typedef Emplaceable T; in main() 33 assert(c.front() == Emplaceable()); in main() 37 assert(c.front() == Emplaceable(1, 2.5)); in main() 41 assert(c.front() == Emplaceable()); in main() 44 assert(c.front() == Emplaceable(1, 2.5)); in main() 46 assert(*next(c.begin()) == Emplaceable()); in main() 50 typedef Emplaceable T; in main() 55 assert(c.front() == Emplaceable()); in main() 59 assert(c.front() == Emplaceable(1, 2.5)); in main() 63 assert(c.front() == Emplaceable()); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | emplace.pass.cpp | 30 typedef std::unordered_multiset<Emplaceable> C; in main() 35 assert(*r == Emplaceable()); in main() 37 r = c.emplace(Emplaceable(5, 6)); in main() 39 assert(*r == Emplaceable(5, 6)); in main() 43 assert(*r == Emplaceable(5, 6)); in main() 46 typedef std::unordered_multiset<Emplaceable, std::hash<Emplaceable>, in main() 47 std::equal_to<Emplaceable>, min_allocator<Emplaceable>> C; in main() 52 assert(*r == Emplaceable()); in main() 54 r = c.emplace(Emplaceable(5, 6)); in main() 56 assert(*r == Emplaceable(5, 6)); in main() [all …]
|
D | emplace_hint.pass.cpp | 31 typedef std::unordered_multiset<Emplaceable> C; in main() 37 assert(*r == Emplaceable()); in main() 39 r = c.emplace_hint(c.end(), Emplaceable(5, 6)); in main() 41 assert(*r == Emplaceable(5, 6)); in main() 45 assert(*r == Emplaceable(5, 6)); in main() 48 typedef std::unordered_multiset<Emplaceable, std::hash<Emplaceable>, in main() 49 std::equal_to<Emplaceable>, min_allocator<Emplaceable>> C; in main() 55 assert(*r == Emplaceable()); in main() 57 r = c.emplace_hint(c.end(), Emplaceable(5, 6)); in main() 59 assert(*r == Emplaceable(5, 6)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | emplace_hint.pass.cpp | 31 typedef std::unordered_set<Emplaceable> C; in main() 37 assert(*r == Emplaceable()); in main() 39 r = c.emplace_hint(e, Emplaceable(5, 6)); in main() 41 assert(*r == Emplaceable(5, 6)); in main() 45 assert(*r == Emplaceable(5, 6)); in main() 48 typedef std::unordered_set<Emplaceable, std::hash<Emplaceable>, in main() 49 std::equal_to<Emplaceable>, min_allocator<Emplaceable>> C; in main() 55 assert(*r == Emplaceable()); in main() 57 r = c.emplace_hint(e, Emplaceable(5, 6)); in main() 59 assert(*r == Emplaceable(5, 6)); in main() [all …]
|
D | emplace.pass.cpp | 30 typedef std::unordered_set<Emplaceable> C; in main() 35 assert(*r.first == Emplaceable()); in main() 38 r = c.emplace(Emplaceable(5, 6)); in main() 40 assert(*r.first == Emplaceable(5, 6)); in main() 45 assert(*r.first == Emplaceable(5, 6)); in main() 49 typedef std::unordered_set<Emplaceable, std::hash<Emplaceable>, in main() 50 std::equal_to<Emplaceable>, min_allocator<Emplaceable>> C; in main() 55 assert(*r.first == Emplaceable()); in main() 58 r = c.emplace(Emplaceable(5, 6)); in main() 60 assert(*r.first == Emplaceable(5, 6)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | emplace_hint.pass.cpp | 32 typedef std::unordered_multimap<int, Emplaceable> C; in main() 40 assert(r->second == Emplaceable()); in main() 42 r = c.emplace_hint(c.end(), std::pair<const int, Emplaceable>(3, Emplaceable(5, 6))); in main() 45 assert(r->second == Emplaceable(5, 6)); in main() 52 assert(r->second == Emplaceable(6, 7)); in main() 56 LIBCPP_ASSERT(r->second == Emplaceable()); in main() 59 LIBCPP_ASSERT(r->second == Emplaceable(5, 6)); in main() 62 typedef std::unordered_multimap<int, Emplaceable, std::hash<int>, std::equal_to<int>, in main() 63 min_allocator<std::pair<const int, Emplaceable>>> C; in main() 71 assert(r->second == Emplaceable()); in main() [all …]
|
D | emplace.pass.cpp | 30 typedef std::unordered_multimap<int, Emplaceable> C; in main() 37 assert(r->second == Emplaceable()); in main() 39 r = c.emplace(std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 42 assert(r->second == Emplaceable(5, 6)); in main() 48 assert(r->second == Emplaceable(6, 7)); in main() 51 typedef std::unordered_multimap<int, Emplaceable, std::hash<int>, std::equal_to<int>, in main() 52 min_allocator<std::pair<const int, Emplaceable>>> C; in main() 59 assert(r->second == Emplaceable()); in main() 61 r = c.emplace(std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 64 assert(r->second == Emplaceable(5, 6)); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/ |
D | emplace_hint.pass.cpp | 31 typedef std::unordered_map<int, Emplaceable> C; in main() 39 assert(r->second == Emplaceable()); in main() 41 r = c.emplace_hint(c.end(), std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 44 assert(r->second == Emplaceable(5, 6)); in main() 50 assert(r->second == Emplaceable(6, 7)); in main() 53 typedef std::unordered_map<int, Emplaceable, std::hash<int>, std::equal_to<int>, in main() 54 min_allocator<std::pair<const int, Emplaceable>>> C; in main() 62 assert(r->second == Emplaceable()); in main() 64 r = c.emplace_hint(c.end(), std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 67 assert(r->second == Emplaceable(5, 6)); in main() [all …]
|
D | emplace.pass.cpp | 30 typedef std::unordered_map<int, Emplaceable> C; in main() 38 assert(r.first->second == Emplaceable()); in main() 40 r = c.emplace(std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 44 assert(r.first->second == Emplaceable(5, 6)); in main() 51 assert(r.first->second == Emplaceable(6, 7)); in main() 54 typedef std::unordered_map<int, Emplaceable, std::hash<int>, std::equal_to<int>, in main() 55 min_allocator<std::pair<const int, Emplaceable>>> C; in main() 63 assert(r.first->second == Emplaceable()); in main() 65 r = c.emplace(std::pair<const int, Emplaceable>(4, Emplaceable(5, 6))); in main() 69 assert(r.first->second == Emplaceable(5, 6)); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/deque/deque.modifiers/ |
D | emplace_front.pass.cpp | 42 c.push_back(Emplaceable()); in make() 56 Ref res_ref = c1.emplace_front(Emplaceable(1, 2.5)); in test() 58 c1.emplace_front(Emplaceable(1, 2.5)); in test() 64 assert(*i == Emplaceable(1, 2.5)); in test() 86 testN<std::deque<Emplaceable> >(rng[i], rng[j]); in main() 93 testN<std::deque<Emplaceable, min_allocator<Emplaceable>> >(rng[i], rng[j]); in main()
|
D | emplace_back.pass.cpp | 42 c.push_back(Emplaceable()); in make() 56 Ref ref = c1.emplace_back(Emplaceable(1, 2.5)); in test() 58 c1.emplace_back(Emplaceable(1, 2.5)); in test() 64 assert(*--i == Emplaceable(1, 2.5)); in test() 85 testN<std::deque<Emplaceable> >(rng[i], rng[j]); in main() 92 testN<std::deque<Emplaceable, min_allocator<Emplaceable>> >(rng[i], rng[j]); in main()
|
D | emplace.pass.cpp | 40 c.push_back(Emplaceable()); in make() 52 CI i = c1.emplace(c1.begin() + P, Emplaceable(1, 2.5)); in test() 56 assert(*i == Emplaceable(1, 2.5)); in test() 97 testN<std::deque<Emplaceable> >(rng[i], rng[j]); in main() 104 testN<std::deque<Emplaceable, min_allocator<Emplaceable>> >(rng[i], rng[j]); in main()
|
/external/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.members/ |
D | emplace.pass.cpp | 25 std::priority_queue<Emplaceable> q; in main() 27 assert(q.top() == Emplaceable(1, 2.5)); in main() 29 assert(q.top() == Emplaceable(3, 4.5)); in main() 31 assert(q.top() == Emplaceable(3, 4.5)); in main()
|
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/ |
D | emplace_hint.pass.cpp | 58 typedef std::multimap<int, Emplaceable> M; in main() 67 assert(m.begin()->second == Emplaceable()); in main() 74 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 81 assert(r->second == Emplaceable(3, 3.5)); in main() 123 …typedef std::multimap<int, Emplaceable, std::less<int>, min_allocator<std::pair<const int, Emplace… in main() 132 assert(m.begin()->second == Emplaceable()); in main() 139 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 146 assert(r->second == Emplaceable(3, 3.5)); in main()
|
D | emplace.pass.cpp | 56 typedef std::multimap<int, Emplaceable> M; in main() 64 assert(m.begin()->second == Emplaceable()); in main() 70 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 76 assert(r->second == Emplaceable(3, 3.5)); in main() 116 …typedef std::multimap<int, Emplaceable, std::less<int>, min_allocator<std::pair<const int, Emplace… in main() 124 assert(m.begin()->second == Emplaceable()); in main() 130 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 136 assert(r->second == Emplaceable(3, 3.5)); in main()
|
/external/libcxx/test/std/containers/associative/map/map.modifiers/ |
D | emplace_hint.pass.cpp | 58 typedef std::map<int, Emplaceable> M; in main() 67 assert(m.begin()->second == Emplaceable()); in main() 74 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 81 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 123 …typedef std::map<int, Emplaceable, std::less<int>, min_allocator<std::pair<const int, Emplaceable>… in main() 132 assert(m.begin()->second == Emplaceable()); in main() 139 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 146 assert(m.begin()->second == Emplaceable(2, 3.5)); in main()
|
D | emplace.pass.cpp | 60 typedef std::map<int, Emplaceable> M; in main() 69 assert(m.begin()->second == Emplaceable()); in main() 76 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 83 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 127 …typedef std::map<int, Emplaceable, std::less<int>, min_allocator<std::pair<const int, Emplaceable>… in main() 136 assert(m.begin()->second == Emplaceable()); in main() 143 assert(m.begin()->second == Emplaceable(2, 3.5)); in main() 150 assert(m.begin()->second == Emplaceable(2, 3.5)); in main()
|
/external/llvm/unittests/ADT/ |
D | SmallVectorTest.cpp | 794 struct Emplaceable { struct 801 Emplaceable() : State(ES_Emplaced) {} in Emplaceable() function 804 explicit Emplaceable(A0Ty &&A0) in Emplaceable() argument 808 Emplaceable(A0Ty &&A0, A1Ty &&A1) in Emplaceable() function 813 Emplaceable(A0Ty &&A0, A1Ty &&A1, A2Ty &&A2) in Emplaceable() function 818 Emplaceable(A0Ty &&A0, A1Ty &&A1, A2Ty &&A2, A3Ty &&A3) in Emplaceable() function 823 Emplaceable(Emplaceable &&) : State(ES_Moved) {} in Emplaceable() argument 824 Emplaceable &operator=(Emplaceable &&) { in operator =() argument 830 Emplaceable(const Emplaceable &) = delete; 831 Emplaceable &operator=(const Emplaceable &) = delete; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | SmallVectorTest.cpp | 865 struct Emplaceable { struct 872 Emplaceable() : State(ES_Emplaced) {} in Emplaceable() function 875 explicit Emplaceable(A0Ty &&A0) in Emplaceable() argument 879 Emplaceable(A0Ty &&A0, A1Ty &&A1) in Emplaceable() argument 884 Emplaceable(A0Ty &&A0, A1Ty &&A1, A2Ty &&A2) in Emplaceable() function 889 Emplaceable(A0Ty &&A0, A1Ty &&A1, A2Ty &&A2, A3Ty &&A3) in Emplaceable() argument 894 Emplaceable(Emplaceable &&) : State(ES_Moved) {} in Emplaceable() function 895 Emplaceable &operator=(Emplaceable &&) { in operator =() argument 901 Emplaceable(const Emplaceable &) = delete; 902 Emplaceable &operator=(const Emplaceable &) = delete; [all …]
|
/external/libcxx/test/std/containers/container.adaptors/queue/queue.defn/ |
D | emplace.pass.cpp | 46 std::queue<Emplaceable> q; in main() 48 typedef Emplaceable T; in main() 63 assert(q.front() == Emplaceable(1, 2.5)); in main() 64 assert(q.back() == Emplaceable(3, 4.5)); in main()
|
/external/libcxx/test/std/containers/associative/multiset/ |
D | emplace_hint.pass.cpp | 47 typedef std::multiset<Emplaceable> M; in main() 53 assert(*m.begin() == Emplaceable()); in main() 57 assert(*r == Emplaceable(2, 3.5)); in main() 61 assert(*r == Emplaceable(2, 3.5)); in main()
|
D | emplace.pass.cpp | 47 typedef std::multiset<Emplaceable> M; in main() 53 assert(*m.begin() == Emplaceable()); in main() 57 assert(*r == Emplaceable(2, 3.5)); in main() 61 assert(*r == Emplaceable(2, 3.5)); in main()
|
/external/libcxx/test/std/containers/associative/set/ |
D | emplace_hint.pass.cpp | 47 typedef std::set<Emplaceable> M; in main() 53 assert(*m.begin() == Emplaceable()); in main() 57 assert(*r == Emplaceable(2, 3.5)); in main() 61 assert(*r == Emplaceable(2, 3.5)); in main()
|