|
BDE 4.39.x Production Release
|
#include <bslstl_hashtable.h>
This class provides a wrapper around a functor satisfying the Hash requirements (bslstl_hash ) such that the function call operator is always declared as const qualified.
TBD Provide an optimization for the case of an empty base functor, where we can safely const_cast want calling the base class operator.
FUNCTOR provided a const-qualified operator().See bslstl_hashtable
Public Member Functions | |
| HashTable_HashWrapper () | |
| HashTable_HashWrapper (const FUNCTOR &fn) | |
| void | swap (HashTable_HashWrapper &other) |
| template<class ARG_TYPE > | |
| std::size_t | operator() (ARG_TYPE &arg) const |
| const FUNCTOR & | functor () const |
|
inline |
Create a HashTable_HashWrapper object wrapping a FUNCTOR that has its default value.
|
inlineexplicit |
Create a HashTable_HashWrapper object wrapping a FUNCTOR that is a copy of the specified fn.
|
inline |
Return a reference providing non-modifiable access to the hash functor wrapped by this object.
|
inline |
Call the wrapped functor with the specified arg and return the result.
ARG_TYPE will typically be deduced as a const type.
|
inline |
Exchange the value of this object with the specified other object.