Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
hash_function_change_test.cc File Reference

Pattern test: every hash container keeps finding its keys after set_hash_fct(). More...

#include <gtest/gtest.h>
#include <stdexcept>
#include <string>
#include <utility>
#include <tpl_dynLhash.H>
#include <tpl_dynMapOhash.H>
#include <tpl_dynSetHash.H>
#include <tpl_lhash.H>
#include <tpl_linHash.H>
#include <tpl_odhash.H>
#include <tpl_olhash.H>
Include dependency graph for hash_function_change_test.cc:

Go to the source code of this file.

Concepts

concept  @947::Takes_A_Function_Of_Pairs
 

Detailed Description

Pattern test: every hash container keeps finding its keys after set_hash_fct().

A container that keeps a hash function of its own for its searches, as the maps of tpl_dynSetHash.H that search by the key alone, or that leaves its keys in the lists of the old function, stops finding them after set_hash_fct(). Every hash container of the library goes through here, empty and with keys: the chained and the open tables place their keys again, and the linear ones, which cannot, refuse the function.

Definition in file hash_function_change_test.cc.