10 template <
int N,
typename T,
template <
int,
typename>
typename HF>
16 template <
int N,
typename T,
template <
int,
typename>
typename HF>
19 const int h = HashFunctor::hash(
_value);
22 for (
int i = 0;
i <
N; ++
i)
43 template <
int N,
typename T,
template <
int,
typename>
typename HF>
46 PONCA_ASSERT_MSG(
_value != EMPTY - OFFSET,
"Illegal value was inserted into the HashSet");
62 template <
int N,
typename T,
template <
int,
typename>
typename HF>
65 PONCA_DEBUG_ASSERT_MSG(
_value != EMPTY - OFFSET,
"Illegal value was searched from the HashSet");
Aggregator class used to declare specialized structures using CRTP.
bool insert(int _value)
Tries to insert a value in the HashSet.
bool search(int _value, int &_searchedIdx) const
Search for a value in the HashSet.
bool contains(int _value) const
Tries to find a value in the HashSet.
void clear()
Empty the array.
void fill(ForwardIt first, ForwardIt last, const T &value)
Assigns the given value to all elements in the range [first, last).
This Source Code Form is subject to the terms of the Mozilla Public License, v.