Home
last modified time | relevance | path

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

/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
Dmerge.pass.cpp38 struct throw_hasher struct
42 throw_hasher(bool& should_throw) : should_throw_(should_throw) {} in throw_hasher() argument
66 typedef std::unordered_multimap<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main() argument
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
83 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
/external/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
Dmerge.pass.cpp38 struct throw_hasher struct
42 throw_hasher(bool& should_throw) : should_throw_(should_throw) {} in throw_hasher() function
66 typedef std::unordered_map<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main() argument
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
83 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
/external/libcxx/test/std/containers/unord/unord.set/
Dmerge.pass.cpp38 struct throw_hasher struct
42 throw_hasher(bool& should_throw) : should_throw_(should_throw) {} in throw_hasher() argument
66 typedef std::unordered_set<Counter<int>, throw_hasher<Counter<int>>> set_type; in main() argument
67 set_type src({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 set_type dst({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 assert(set_equal(src, set_type({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
83 assert(set_equal(dst, set_type({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
/external/libcxx/test/std/containers/unord/unord.multiset/
Dmerge.pass.cpp38 struct throw_hasher struct
42 throw_hasher(bool& should_throw) : should_throw_(should_throw) {} in throw_hasher() function
66 typedef std::unordered_multiset<Counter<int>, throw_hasher<Counter<int>>> set_type; in main() argument
67 set_type src({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 set_type dst({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 assert(set_equal(src, set_type({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
83 assert(set_equal(dst, set_type({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()