Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_hash.H File Reference

Unified hash table interface. More...

#include <initializer_list>
#include <tpl_dynSetHash.H>
#include <tpl_dynMapOhash.H>
#include <ah-errors.H>
Include dependency graph for tpl_hash.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::HashSet< Key, HashSetTable, Cmp >
 
struct  Aleph::HashMap< Key, Data, HashMapTable, Cmp >
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Typedefs

template<typename Key , template< typename, class > class HashSetTable = OLhashTable, class Cmp = Aleph::equal_to<Key>>
using Aleph::DynHashSet = HashSet< Key, HashSetTable, Cmp >
 Alias for HashSet (for consistency with other Dyn containers).
 
template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapOLhash, class Cmp = Aleph::equal_to<Key>>
using Aleph::DynHashMap = HashMap< Key, Data, HashMapTable, Cmp >
 Alias for HashMap (for consistency with other Dyn containers).
 

Detailed Description

Unified hash table interface.

Provides HashMap and HashSet as convenient wrappers around DynSetHash and DynMapHash for STL-like hash container usage.

Features

  • Simple key-value and set interfaces
  • Automatic resizing
  • Configurable hash functions
See also
tpl_dynSetHash.H Underlying implementation
Author
Leandro Rabindranath León

Definition in file tpl_hash.H.