4 #ifndef UTILMM_HASH_MAP_HEADER
5 # define UTILMM_HASH_MAP_HEADER
6 #include "utilmm/config/config.h"
29 template<
typename Key,
typename Data,
class Hash = hash<Key>,
30 class Equal = std::equal_to<Key> >
74 the_table.
swap(other.the_table);
82 return the_table.
size();
97 return the_table.
empty();
105 return the_table.
begin();
112 return the_table.
end();
119 return the_table.
begin();
126 return the_table.
end();
162 std::pair<iterator, bool>
insert(value_arg val) {
171 the_table.
erase(first, last);
205 #endif // UTILMM_HASH_MAP_HEADER
map with hashing access
Definition: hash_map.hh:31
void clear()
Remove all elements.
Definition: hash_map.hh:197
iterator find(key_arg key)
Search for key.
Definition: hash_map.hh:139
void erase(iterator const &i)
Remove element.
Definition: hash_map.hh:179
size_t size() const
element count
Definition: hash_map.hh:81
size_t max_size() const
max element number
Definition: hash_map.hh:88
iterator begin()
beginning of table
Definition: hash_map.hh:104
std::pair< Key const, Data > value_type
Value type for cells.
Definition: hash_map.hh:47
std::pair< iterator, bool > insert(value_arg val)
Cell insertion.
Definition: hash_map.hh:162
Data data_type
Data type.
Definition: hash_map.hh:39
bool empty() const
Emptyness test.
Definition: hash_map.hh:96
Key key_type
Key type.
Definition: hash_map.hh:34
container_type::iterator iterator
iterator type
Definition: hash_map.hh:62
const_iterator find(key_arg key) const
Search key.
Definition: hash_map.hh:146
void swap(hash_map &other)
swapping function
Definition: hash_map.hh:73
Declaration of utilmm::hash_toolbox::table.
iterator end()
end of table
Definition: hash_map.hh:111
container_type::const_iterator const_iterator
const iterator type
Definition: hash_map.hh:67
void erase(iterator const &first, iterator const &last)
Remove range.
Definition: hash_map.hh:170
void erase(key_arg key)
remove element
Definition: hash_map.hh:189
const_iterator end() const
end of table
Definition: hash_map.hh:125
const_iterator begin() const
beginning of table
Definition: hash_map.hh:118