Home
last modified time | relevance | path

Searched refs:throw_comparator (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
H A Dmerge.pass.cpp36 struct throw_comparator struct
40 throw_comparator(bool& should_throw) : should_throw_(should_throw) {} in throw_comparator() argument
65 typedef std::multimap<Counter<int>, int, throw_comparator> map_type; in main() argument
66 map_type src({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
67 map_type dst({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
81 assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
82 assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/set/
H A Dmerge.pass.cpp36 struct throw_comparator struct
40 throw_comparator(bool& should_throw) : should_throw_(should_throw) {} in throw_comparator() argument
65 typedef std::set<Counter<int>, throw_comparator> set_type; in main() argument
66 set_type src({1, 3, 5}, throw_comparator(do_throw)); in main()
67 set_type dst({2, 4, 5}, throw_comparator(do_throw)); in main()
81 assert(set_equal(src, set_type({1, 3, 5}, throw_comparator(do_throw)))); in main()
82 assert(set_equal(dst, set_type({2, 4, 5}, throw_comparator(do_throw)))); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multiset/
H A Dmerge.pass.cpp36 struct throw_comparator struct
40 throw_comparator(bool& should_throw) : should_throw_(should_throw) {} in throw_comparator() argument
65 typedef std::multiset<Counter<int>, throw_comparator> set_type; in main() argument
66 set_type src({1, 3, 5}, throw_comparator(do_throw)); in main()
67 set_type dst({2, 4, 5}, throw_comparator(do_throw)); in main()
81 assert(set_equal(src, set_type({1, 3, 5}, throw_comparator(do_throw)))); in main()
82 assert(set_equal(dst, set_type({2, 4, 5}, throw_comparator(do_throw)))); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.modifiers/
H A Dmerge.pass.cpp36 struct throw_comparator struct
40 throw_comparator(bool& should_throw) : should_throw_(should_throw) {} in throw_comparator() argument
65 typedef std::map<Counter<int>, int, throw_comparator> map_type; in main() argument
66 map_type src({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
67 map_type dst({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
81 assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
82 assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()