37# include <gtest/gtest.h>
43using namespace testing;
48template <
class HashTbl>
62 for (
size_t i = 0; i < 100; ++i)
67 auto ptr =
tbl.search(i);
73 for (
size_t i = 0, n =
tbl.size(); i < n; ++i)
75 auto ptr =
tbl.search(i);
TYPED_TEST_P(OHashTest, basic)
REGISTER_TYPED_TEST_CASE_P(OHashTest, basic)
TYPED_TEST_CASE_P(OHashTest)
Types< MapODhash< size_t, string >, MapOLhash< size_t, string >, DynMapLinHash< size_t, string >, DynMapHash< size_t, string > > HashTypes
INSTANTIATE_TYPED_TEST_CASE_P(Open, OHashTest, HashTypes)
MapOLhash< int, Foo > tbl
Main namespace for Aleph-w library functions.
std::pair< First, Second > pair
Alias to std::pair kept for backwards compatibility.
std::string to_string(const time_t t, const std::string &format)
Format a time_t value into a string using format.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Open addressing hash map using linear probing.
Dynamic map with open hashing.
Dynamic set implementations based on hash tables.