Add mix32_policy

This commit is contained in:
Peter Dimov
2022-01-18 21:31:53 +02:00
parent 98494420c5
commit bf86730a62
2 changed files with 63 additions and 0 deletions

View File

@@ -42,5 +42,24 @@ int main()
}
}
{
typedef boost::uint32_t SizeT;
typedef boost::unordered::detail::mix32_policy<SizeT> policy;
for( SizeT i = 1; i < 200; ++i )
{
test<policy>( i );
}
for( int i = 8; i < 32; ++i )
{
SizeT x = SizeT( 1 ) << i;
test<policy>( x - 1 );
test<policy>( x );
test<policy>( x + 1 );
}
}
return boost::report_errors();
}