diff --git a/libcxx/test/std/containers/test_hash.h b/libcxx/test/std/containers/test_hash.h --- a/libcxx/test/std/containers/test_hash.h +++ b/libcxx/test/std/containers/test_hash.h @@ -10,19 +10,17 @@ #define TEST_HASH_H #include -#include +#include -template +template class test_hash - : private C { int data_; public: explicit test_hash(int data = 0) : data_(data) {} - std::size_t - operator()(typename std::add_lvalue_reference::type x) const - {return C::operator()(x);} + std::size_t operator()(const T& x) const + {return std::hash()(x);} bool operator==(const test_hash& c) const {return data_ == c.data_;} diff --git a/libcxx/test/std/containers/unord/unord.map/swap_member.pass.cpp b/libcxx/test/std/containers/unord/unord.map/swap_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/swap_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/swap_member.pass.cpp @@ -28,7 +28,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -56,7 +56,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -104,7 +104,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -146,7 +146,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -208,7 +208,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -236,7 +236,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -284,7 +284,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -326,7 +326,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -388,7 +388,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -416,7 +416,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -464,7 +464,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -506,7 +506,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/allocator.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c(test_allocator >(10)); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >(10))); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c(min_allocator >{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -68,13 +68,13 @@ { typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; C c(A{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A{}); assert(c.size() == 0); @@ -87,7 +87,7 @@ { typedef NotConstructible T; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; @@ -106,7 +106,7 @@ { typedef NotConstructible T; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_copy.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_copy.pass.cpp @@ -33,7 +33,7 @@ { typedef test_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -49,13 +49,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -66,7 +66,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -96,7 +96,7 @@ { typedef other_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -112,13 +112,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -129,7 +129,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -142,7 +142,7 @@ { typedef min_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -158,13 +158,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -175,7 +175,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_init.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_init.pass.cpp @@ -33,7 +33,7 @@ { typedef std::allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -65,7 +65,7 @@ { typedef min_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_move.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_move.pass.cpp @@ -34,7 +34,7 @@ { typedef test_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -50,13 +50,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -67,7 +67,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -79,7 +79,7 @@ { typedef test_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -95,13 +95,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(10) ); @@ -113,7 +113,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -127,7 +127,7 @@ { typedef other_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -143,13 +143,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -161,7 +161,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -175,7 +175,7 @@ { typedef min_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -191,13 +191,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -209,7 +209,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy.pass.cpp @@ -31,7 +31,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -47,7 +47,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -58,7 +58,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -71,7 +71,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, other_allocator > > C; @@ -87,7 +87,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), other_allocator >(10) ); @@ -98,7 +98,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (other_allocator >(-2))); @@ -110,7 +110,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -126,7 +126,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -137,7 +137,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/copy_alloc.pass.cpp @@ -31,7 +31,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -47,7 +47,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -58,7 +58,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(5))); @@ -71,7 +71,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -87,7 +87,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -98,7 +98,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -111,7 +111,7 @@ { typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -127,7 +127,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -138,7 +138,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/default.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/default.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/default.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/default.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -68,14 +68,14 @@ { typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; { C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A()); assert(c.size() == 0); @@ -88,7 +88,7 @@ A a; C c(a); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -52,7 +52,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -64,7 +64,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -83,7 +83,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -97,7 +97,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; @@ -116,7 +116,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(!c.empty()); @@ -128,7 +128,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; @@ -149,7 +149,7 @@ assert(c.at(3) == "three"); assert(c.at(4) == "four"); assert(c.hash_function() == hf); - assert(!(c.hash_function() == test_hash >())); + assert(!(c.hash_function() == test_hash())); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -54,7 +54,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -66,7 +66,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -87,7 +87,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -47,7 +47,7 @@ P(2, "four"), }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -55,7 +55,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -67,7 +67,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -81,7 +81,7 @@ P(2, "four"), }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -89,7 +89,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -48,7 +48,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -57,7 +57,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >())); @@ -69,7 +69,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -83,7 +83,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -92,7 +92,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/init_size_hash_equal_allocator.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -48,7 +48,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -58,7 +58,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -70,7 +70,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -84,7 +84,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -94,7 +94,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -107,7 +107,7 @@ { typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -121,7 +121,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -131,7 +131,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.pass.cpp @@ -33,12 +33,12 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -46,7 +46,7 @@ C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -61,7 +61,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -77,7 +77,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -89,7 +89,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -104,12 +104,12 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -117,7 +117,7 @@ C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -132,7 +132,7 @@ } { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -148,7 +148,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -160,7 +160,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move_alloc.pass.cpp @@ -35,7 +35,7 @@ typedef std::pair P; typedef test_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -50,7 +50,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -61,7 +61,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(12)); assert(!c.empty()); @@ -76,7 +76,7 @@ typedef std::pair P; typedef test_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -91,7 +91,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -102,7 +102,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -117,7 +117,7 @@ typedef std::pair P; typedef min_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -132,7 +132,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); @@ -143,7 +143,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); @@ -158,7 +158,7 @@ typedef std::pair P; typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -173,7 +173,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -184,7 +184,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -55,7 +55,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -68,7 +68,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -89,7 +89,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -103,7 +103,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; @@ -135,7 +135,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_map C; diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -57,7 +57,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -70,7 +70,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -93,7 +93,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash.pass.cpp @@ -35,7 +35,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -51,7 +51,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -59,7 +59,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -72,7 +72,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -88,7 +88,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -96,7 +96,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal.pass.cpp @@ -35,7 +35,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -51,7 +51,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -60,7 +60,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >())); @@ -73,7 +73,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -89,7 +89,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -98,7 +98,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal_allocator.pass.cpp @@ -36,7 +36,7 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; @@ -52,7 +52,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -62,7 +62,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -75,7 +75,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; @@ -91,7 +91,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -101,7 +101,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -114,7 +114,7 @@ { typedef explicit_allocator> A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; @@ -130,7 +130,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -140,7 +140,7 @@ assert(c.at(2) == "two"); assert(c.at(3) == "three"); assert(c.at(4) == "four"); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.compile.fail.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.compile.fail.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.compile.fail.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.compile.fail.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash.pass.cpp @@ -28,16 +28,16 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -50,16 +50,16 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal.pass.cpp @@ -28,17 +28,17 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >())); @@ -51,17 +51,17 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/size_hash_equal_allocator.pass.cpp @@ -28,18 +28,18 @@ { { typedef std::unordered_map >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -52,18 +52,18 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_map >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -76,17 +76,17 @@ { typedef explicit_allocator > A; typedef std::unordered_map >, + test_hash, test_equal_to, A > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.map/unord.map.swap/swap_non_member.pass.cpp b/libcxx/test/std/containers/unord/unord.map/unord.map.swap/swap_non_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.map/unord.map.swap/swap_non_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.map/unord.map.swap/swap_non_member.pass.cpp @@ -28,7 +28,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -56,7 +56,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -106,7 +106,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -150,7 +150,7 @@ assert(it1 == c2.begin()); // Iterators are not invalidated } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_map C; @@ -216,7 +216,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -244,7 +244,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -292,7 +292,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -334,7 +334,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_map C; @@ -396,7 +396,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -424,7 +424,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -472,7 +472,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; @@ -514,7 +514,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_map C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/swap_member.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/swap_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/swap_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/swap_member.pass.cpp @@ -30,7 +30,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -58,7 +58,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -106,7 +106,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -162,7 +162,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -238,7 +238,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -266,7 +266,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -314,7 +314,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -370,7 +370,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -446,7 +446,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -474,7 +474,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -522,7 +522,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -578,7 +578,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/allocator.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c(test_allocator >(10)); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >(10))); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c(min_allocator >{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -68,13 +68,13 @@ { typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; C c(A{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A{}); assert(c.size() == 0); @@ -87,7 +87,7 @@ { typedef NotConstructible T; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; @@ -106,7 +106,7 @@ { typedef NotConstructible T; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_copy.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_copy.pass.cpp @@ -35,7 +35,7 @@ { typedef test_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -51,13 +51,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -75,7 +75,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -105,7 +105,7 @@ { typedef other_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -121,13 +121,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -145,7 +145,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -158,7 +158,7 @@ { typedef min_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -174,13 +174,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -198,7 +198,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_init.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_init.pass.cpp @@ -36,7 +36,7 @@ { typedef test_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -87,7 +87,7 @@ { typedef min_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_move.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/assign_move.pass.cpp @@ -36,7 +36,7 @@ { typedef test_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -52,13 +52,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -96,7 +96,7 @@ { typedef test_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -112,13 +112,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(10) ); @@ -158,7 +158,7 @@ { typedef other_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -174,13 +174,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -220,7 +220,7 @@ { typedef min_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -236,13 +236,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -49,7 +49,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -67,7 +67,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -80,7 +80,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, other_allocator > > C; @@ -96,7 +96,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), other_allocator >(10) ); @@ -114,7 +114,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (other_allocator >(-2))); @@ -126,7 +126,7 @@ } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -142,7 +142,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -160,7 +160,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/copy_alloc.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -49,7 +49,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -67,7 +67,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(5))); @@ -80,7 +80,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -96,7 +96,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -114,7 +114,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -127,7 +127,7 @@ { typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -143,7 +143,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -161,7 +161,7 @@ CheckConsecutiveKeys(c.find(3), c.end(), 3, s); s.insert("four"); CheckConsecutiveKeys(c.find(4), c.end(), 4, s); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); @@ -68,14 +68,14 @@ { typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; { C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A()); assert(c.size() == 0); @@ -88,7 +88,7 @@ A a; C c(a); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init.pass.cpp @@ -35,7 +35,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -77,13 +77,13 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -125,7 +125,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } @@ -133,7 +133,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; @@ -183,7 +183,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size.pass.cpp @@ -35,7 +35,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -79,13 +79,13 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -129,7 +129,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash.pass.cpp @@ -35,7 +35,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -49,7 +49,7 @@ P(2, "four"), }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -80,13 +80,13 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -100,7 +100,7 @@ P(2, "four"), }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -131,7 +131,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal.pass.cpp @@ -36,7 +36,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -50,7 +50,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -82,13 +82,13 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >())); } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -102,7 +102,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -134,7 +134,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal_allocator.pass.cpp @@ -36,7 +36,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -50,7 +50,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -83,13 +83,13 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >(10))); } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -103,7 +103,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -136,14 +136,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); } { typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -157,7 +157,7 @@ P(2, "four"), }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -190,7 +190,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.pass.cpp @@ -35,20 +35,20 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -62,7 +62,7 @@ } { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -78,7 +78,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -114,7 +114,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >(10))); @@ -122,19 +122,19 @@ } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -148,7 +148,7 @@ } { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -164,7 +164,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -200,7 +200,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_alloc.pass.cpp @@ -37,7 +37,7 @@ typedef std::pair P; typedef test_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -52,7 +52,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -86,7 +86,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >(12))); @@ -96,7 +96,7 @@ typedef std::pair P; typedef test_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -111,7 +111,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -145,7 +145,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >(10))); @@ -155,7 +155,7 @@ typedef std::pair P; typedef min_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -170,7 +170,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); @@ -204,7 +204,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); @@ -214,7 +214,7 @@ typedef std::pair P; typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -229,7 +229,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -263,7 +263,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range.pass.cpp @@ -36,7 +36,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -80,14 +80,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -131,7 +131,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } @@ -139,7 +139,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; @@ -191,7 +191,7 @@ { typedef std::pair P; typedef test_allocator> A; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef std::unordered_multimap C; diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size.pass.cpp @@ -36,7 +36,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -82,14 +82,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -135,7 +135,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash.pass.cpp @@ -37,7 +37,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -53,7 +53,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -84,14 +84,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == test_allocator >())); } #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -107,7 +107,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -138,7 +138,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal.pass.cpp @@ -37,7 +37,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -53,7 +53,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -85,14 +85,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >())); } #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -108,7 +108,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -140,7 +140,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp @@ -38,7 +38,7 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; @@ -54,7 +54,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); @@ -87,14 +87,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == test_allocator >(10))); } #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; @@ -110,7 +110,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); @@ -143,14 +143,14 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert((c.get_allocator() == min_allocator >())); } { typedef explicit_allocator> A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; @@ -166,7 +166,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); @@ -199,7 +199,7 @@ assert(static_cast(std::distance(c.cbegin(), c.cend())) == c.size()); assert(std::fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); assert(c.max_load_factor() == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); } diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.compile.fail.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.compile.fail.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.compile.fail.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.compile.fail.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size.pass.cpp @@ -28,14 +28,14 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -48,14 +48,14 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash.pass.cpp @@ -28,16 +28,16 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator >())); @@ -50,16 +50,16 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal.pass.cpp @@ -28,17 +28,17 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >())); @@ -51,17 +51,17 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal_allocator.pass.cpp @@ -28,18 +28,18 @@ { { typedef std::unordered_multimap >, + test_hash, test_equal_to, test_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator >(10))); @@ -52,18 +52,18 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multimap >, + test_hash, test_equal_to, min_allocator > > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator >())); @@ -76,17 +76,17 @@ { typedef explicit_allocator > A; typedef std::unordered_multimap >, + test_hash, test_equal_to, A > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), A{} ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A{}); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_non_member.pass.cpp b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_non_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_non_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/swap_non_member.pass.cpp @@ -30,7 +30,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -58,7 +58,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -108,7 +108,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -157,7 +157,7 @@ assert(it1 == c2.begin()); // Iterators are not invalidated } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator > Alloc; typedef std::unordered_multimap C; @@ -228,7 +228,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -256,7 +256,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -304,7 +304,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -351,7 +351,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator > Alloc; typedef std::unordered_multimap C; @@ -418,7 +418,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -446,7 +446,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -494,7 +494,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; @@ -541,7 +541,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator > Alloc; typedef std::unordered_multimap C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/swap_member.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/swap_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/swap_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/swap_member.pass.cpp @@ -27,7 +27,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -55,7 +55,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -103,7 +103,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -145,7 +145,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -207,7 +207,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -235,7 +235,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -283,7 +283,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -325,7 +325,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -387,7 +387,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -415,7 +415,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -463,7 +463,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -505,7 +505,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/allocator.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c(test_allocator(10)); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator(10)); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c(min_allocator{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(c.size() == 0); @@ -64,7 +64,7 @@ #if TEST_STD_VER > 11 { typedef NotConstructible T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; @@ -84,7 +84,7 @@ } { typedef NotConstructible T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_copy.pass.cpp @@ -33,7 +33,7 @@ { typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -49,13 +49,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -66,7 +66,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -97,7 +97,7 @@ { typedef other_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -113,13 +113,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -130,7 +130,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -143,7 +143,7 @@ { typedef min_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -159,13 +159,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -176,7 +176,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_init.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_init.pass.cpp @@ -33,7 +33,7 @@ { typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -65,7 +65,7 @@ { typedef min_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_move.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/assign_move.pass.cpp @@ -34,7 +34,7 @@ { typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -50,13 +50,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -67,7 +67,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -79,7 +79,7 @@ { typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -95,13 +95,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(10) ); @@ -113,7 +113,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -126,7 +126,7 @@ { typedef other_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -142,13 +142,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -160,7 +160,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -173,7 +173,7 @@ { typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -189,13 +189,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -207,7 +207,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); @@ -220,7 +220,7 @@ { typedef min_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -236,13 +236,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -254,7 +254,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy.pass.cpp @@ -31,7 +31,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -58,7 +58,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -70,7 +70,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, other_allocator > C; @@ -86,7 +86,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), other_allocator(10) ); @@ -97,7 +97,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == other_allocator(-2)); assert(!c.empty()); @@ -108,7 +108,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -124,7 +124,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -135,7 +135,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/copy_alloc.pass.cpp @@ -31,7 +31,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -58,7 +58,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(5)); assert(!c.empty()); @@ -70,7 +70,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -86,7 +86,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -97,7 +97,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); @@ -64,14 +64,14 @@ { typedef explicit_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; { C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A()); assert(c.size() == 0); @@ -84,7 +84,7 @@ A a; C c(a); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -51,7 +51,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -62,7 +62,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -81,7 +81,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); @@ -93,7 +93,7 @@ #if TEST_STD_VER > 11 { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; @@ -126,7 +126,7 @@ } { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -53,7 +53,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -64,7 +64,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -85,7 +85,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -55,7 +55,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -66,7 +66,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -80,7 +80,7 @@ P(2) }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -88,7 +88,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -56,7 +56,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -67,7 +67,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -81,7 +81,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -90,7 +90,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/init_size_hash_equal_allocator.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -57,7 +57,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -68,7 +68,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -82,7 +82,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -92,7 +92,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.pass.cpp @@ -32,19 +32,19 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(c.empty()); @@ -57,7 +57,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -73,7 +73,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -86,7 +86,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -99,19 +99,19 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(c.empty()); @@ -124,7 +124,7 @@ } { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -140,7 +140,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -153,7 +153,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.pass.cpp @@ -35,7 +35,7 @@ typedef int P; typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -50,7 +50,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -61,7 +61,7 @@ CheckConsecutiveValues(c.find(2), c.end(), 2, 2); CheckConsecutiveValues(c.find(3), c.end(), 3, 1); CheckConsecutiveValues(c.find(4), c.end(), 4, 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(12)); assert(!c.empty()); @@ -76,7 +76,7 @@ typedef int P; typedef test_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -91,7 +91,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -102,7 +102,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -117,7 +117,7 @@ typedef int P; typedef min_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -132,7 +132,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); @@ -143,7 +143,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); @@ -158,7 +158,7 @@ typedef int P; typedef min_allocator A; typedef std::unordered_multiset >, + test_hash, test_equal_to, A > C; @@ -173,7 +173,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); @@ -184,7 +184,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -53,7 +53,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -65,7 +65,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -86,7 +86,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); @@ -98,7 +98,7 @@ #if TEST_STD_VER > 11 { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; @@ -131,7 +131,7 @@ } { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_multiset C; diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -55,7 +55,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -67,7 +67,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -90,7 +90,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -49,7 +49,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -57,7 +57,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -69,7 +69,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -85,7 +85,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 6); @@ -93,7 +93,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -49,7 +49,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -58,7 +58,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -70,7 +70,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -86,7 +86,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -95,7 +95,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/range_size_hash_equal_allocator.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; @@ -50,7 +50,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -60,7 +60,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -72,7 +72,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; @@ -88,7 +88,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -98,7 +98,7 @@ assert(c.count(2) == 2); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.compile.fail.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.compile.fail.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.compile.fail.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.compile.fail.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash.pass.cpp @@ -28,15 +28,15 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -48,15 +48,15 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal.pass.cpp @@ -28,16 +28,16 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -49,16 +49,16 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/size_hash_equal_allocator.pass.cpp @@ -28,17 +28,17 @@ { { typedef std::unordered_multiset >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator >(10) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator(10))); assert(c.size() == 0); @@ -50,17 +50,17 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_multiset >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator >() ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_non_member.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_non_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_non_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_non_member.pass.cpp @@ -27,7 +27,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -55,7 +55,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -105,7 +105,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -149,7 +149,7 @@ assert(it1 == c2.begin()); // Iterators are not invalidated } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_multiset C; @@ -215,7 +215,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -243,7 +243,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -291,7 +291,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -333,7 +333,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_multiset C; @@ -395,7 +395,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -423,7 +423,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -471,7 +471,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; @@ -513,7 +513,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_multiset C; diff --git a/libcxx/test/std/containers/unord/unord.set/swap_member.pass.cpp b/libcxx/test/std/containers/unord/unord.set/swap_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/swap_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/swap_member.pass.cpp @@ -27,7 +27,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -55,7 +55,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -103,7 +103,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -145,7 +145,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -207,7 +207,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -235,7 +235,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -283,7 +283,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -325,7 +325,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -387,7 +387,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -415,7 +415,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -463,7 +463,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -505,7 +505,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/allocator.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c(test_allocator(10)); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator(10)); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c(min_allocator{}); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(c.size() == 0); @@ -64,7 +64,7 @@ #if TEST_STD_VER > 11 { typedef NotConstructible T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; @@ -84,7 +84,7 @@ } { typedef NotConstructible T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.pass.cpp @@ -32,7 +32,7 @@ { typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -48,13 +48,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -65,7 +65,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -95,7 +95,7 @@ { typedef other_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -111,13 +111,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -128,7 +128,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -141,7 +141,7 @@ { typedef min_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -157,13 +157,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -174,7 +174,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_init.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_init.pass.cpp @@ -33,7 +33,7 @@ { typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -65,7 +65,7 @@ { typedef min_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_move.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_move.pass.cpp @@ -33,7 +33,7 @@ { typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -49,13 +49,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -66,7 +66,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(4)); assert(!c.empty()); @@ -78,7 +78,7 @@ { typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -94,13 +94,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(10) ); @@ -112,7 +112,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -125,7 +125,7 @@ { typedef other_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -141,13 +141,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A(4) ); @@ -159,7 +159,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -172,7 +172,7 @@ { typedef min_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -188,13 +188,13 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); C c(a, a + 2, 7, - test_hash >(2), + test_hash(2), test_equal_to(3), A() ); @@ -206,7 +206,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy.pass.cpp @@ -30,7 +30,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -46,7 +46,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -57,7 +57,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -69,7 +69,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, other_allocator > C; @@ -85,7 +85,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), other_allocator(10) ); @@ -96,7 +96,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == other_allocator(-2)); assert(!c.empty()); @@ -107,7 +107,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -123,7 +123,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -134,7 +134,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/copy_alloc.pass.cpp @@ -30,7 +30,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -46,7 +46,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -57,7 +57,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(5)); assert(!c.empty()); @@ -69,7 +69,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -85,7 +85,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -96,7 +96,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/default.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/default.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/default.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/default.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); @@ -64,14 +64,14 @@ { typedef explicit_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; { C c; LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == A()); assert(c.size() == 0); @@ -84,7 +84,7 @@ A a; C c(a); LIBCPP_ASSERT(c.bucket_count() == 0); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == a); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -51,7 +51,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -62,7 +62,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -81,7 +81,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); @@ -93,7 +93,7 @@ #if TEST_STD_VER > 11 { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; @@ -126,7 +126,7 @@ } { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -53,7 +53,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -64,7 +64,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -85,7 +85,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -55,7 +55,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -66,7 +66,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -80,7 +80,7 @@ P(2) }, 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -88,7 +88,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -56,7 +56,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -67,7 +67,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -81,7 +81,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -90,7 +90,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/init_size_hash_equal_allocator.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -47,7 +47,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -57,7 +57,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -68,7 +68,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -82,7 +82,7 @@ P(2) }, 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -92,7 +92,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.pass.cpp @@ -32,19 +32,19 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(c.empty()); @@ -57,7 +57,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -73,7 +73,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -86,7 +86,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -99,19 +99,19 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c0(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); C c = std::move(c0); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 0); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(c.empty()); @@ -124,7 +124,7 @@ } { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -140,7 +140,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -153,7 +153,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move_alloc.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move_alloc.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move_alloc.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move_alloc.pass.cpp @@ -34,7 +34,7 @@ typedef int P; typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -49,7 +49,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -60,7 +60,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(12)); assert(!c.empty()); @@ -75,7 +75,7 @@ typedef int P; typedef test_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -90,7 +90,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A(10) ); @@ -101,7 +101,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A(10)); assert(!c.empty()); @@ -116,7 +116,7 @@ typedef int P; typedef min_allocator A; typedef std::unordered_set >, + test_hash, test_equal_to, A > C; @@ -131,7 +131,7 @@ }; C c0(a, a + sizeof(a)/sizeof(a[0]), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), A() ); @@ -142,7 +142,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == A()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -53,7 +53,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -65,7 +65,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -86,7 +86,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); @@ -98,7 +98,7 @@ #if TEST_STD_VER > 11 { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; @@ -131,7 +131,7 @@ } { typedef int T; - typedef test_hash> HF; + typedef test_hash HF; typedef test_equal_to Comp; typedef test_allocator A; typedef std::unordered_set C; diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size.pass.cpp @@ -32,7 +32,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -55,7 +55,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -67,7 +67,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -90,7 +90,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -49,7 +49,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -57,7 +57,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -69,7 +69,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -85,7 +85,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); assert(c.size() == 4); @@ -93,7 +93,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal.pass.cpp @@ -33,7 +33,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -49,7 +49,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -58,7 +58,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator()); assert(!c.empty()); @@ -70,7 +70,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -86,7 +86,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); @@ -95,7 +95,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/range_size_hash_equal_allocator.pass.cpp @@ -34,7 +34,7 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; @@ -50,7 +50,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); @@ -60,7 +60,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == test_allocator(10)); assert(!c.empty()); @@ -72,7 +72,7 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; @@ -88,7 +88,7 @@ }; C c(cpp17_input_iterator(a), cpp17_input_iterator(a + sizeof(a)/sizeof(a[0])), 7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); @@ -98,7 +98,7 @@ assert(c.count(2) == 1); assert(c.count(3) == 1); assert(c.count(4) == 1); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == min_allocator()); assert(!c.empty()); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.compile.fail.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.compile.fail.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.compile.fail.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.compile.fail.cpp @@ -27,13 +27,13 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c = 7; LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size.pass.cpp @@ -28,13 +28,13 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -46,13 +46,13 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c(7); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >()); + assert(c.hash_function() == test_hash()); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash.pass.cpp @@ -28,15 +28,15 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -48,15 +48,15 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8) + test_hash(8) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to()); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal.pass.cpp @@ -28,16 +28,16 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator())); assert(c.size() == 0); @@ -49,16 +49,16 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal_allocator.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal_allocator.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal_allocator.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/size_hash_equal_allocator.pass.cpp @@ -28,17 +28,17 @@ { { typedef std::unordered_set >, + test_hash, test_equal_to, test_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), test_allocator(10) ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (test_allocator(10))); assert(c.size() == 0); @@ -50,17 +50,17 @@ #if TEST_STD_VER >= 11 { typedef std::unordered_set >, + test_hash, test_equal_to, min_allocator > C; C c(7, - test_hash >(8), + test_hash(8), test_equal_to(9), min_allocator() ); LIBCPP_ASSERT(c.bucket_count() == 7); - assert(c.hash_function() == test_hash >(8)); + assert(c.hash_function() == test_hash(8)); assert(c.key_eq() == test_equal_to(9)); assert(c.get_allocator() == (min_allocator())); assert(c.size() == 0); diff --git a/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp b/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp --- a/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp +++ b/libcxx/test/std/containers/unord/unord.set/unord.set.swap/swap_non_member.pass.cpp @@ -27,7 +27,7 @@ int main(int, char**) { { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -55,7 +55,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -105,7 +105,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -149,7 +149,7 @@ assert(it1 == c2.begin()); // Iterators are not invalidated } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef test_allocator Alloc; typedef std::unordered_set C; @@ -215,7 +215,7 @@ } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -243,7 +243,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -291,7 +291,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -333,7 +333,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef other_allocator Alloc; typedef std::unordered_set C; @@ -395,7 +395,7 @@ } #if TEST_STD_VER >= 11 { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -423,7 +423,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -471,7 +471,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C; @@ -513,7 +513,7 @@ assert(c2.max_load_factor() == 1); } { - typedef test_hash > Hash; + typedef test_hash Hash; typedef test_equal_to Compare; typedef min_allocator Alloc; typedef std::unordered_set C;