Quick Links: |
#include <bslstl_hashtable.h>
Public Member Functions | |
HashTable_HashWrapper (FUNCTOR &fn) | |
template<class ARG_TYPE > | |
std::size_t | operator() (ARG_TYPE &arg) const |
FUNCTOR & | functor () const |
This partial specialization handles const
qualified functors, that may not be stored as a mutable
member in the primary template. Note that the FUNCTOR
type itself may be const
-qualified, so this one partial template specialization also handles const FUNCTOR&
references. In order to correctly parse with the reference-binding rules, we drop the const
in front of many of the references to FUNCTOR
seen in the primary template definition. Note that this type has a reference data member, so is not default constructible, assignable or swappable.
See Component bslstl_hashtable
bslstl::HashTable_HashWrapper< FUNCTOR & >::HashTable_HashWrapper | ( | FUNCTOR & | fn | ) | [explicit] |
Create a HashTable_HashWrapper
object wrapping a FUNCTOR
that is a copy of the specified fn
.
std::size_t bslstl::HashTable_HashWrapper< FUNCTOR & >::operator() | ( | ARG_TYPE & | arg | ) | const |
Call the wrapped functor
with the specified arg
and return the result. Note that ARG_TYPE
will typically be deduced as a const
type.
FUNCTOR& bslstl::HashTable_HashWrapper< FUNCTOR & >::functor | ( | ) | const |
Return a reference providing non-modifiable access to the hash functor wrapped by this object.