BDE 4.14.0 Production release
|
#include <bslh_hash.h>
Public Types | |
typedef size_t | result_type |
typedef HASH_ALGORITHM | HashAlgorithm |
Make the HASH_ALGORITHM template parameter available to clients. | |
Public Member Functions | |
Hash ()=default | |
Hash (const Hash &original)=default | |
~Hash ()=default | |
Destroy this object. | |
Hash & | operator= (const Hash &rhs)=default |
template<class TYPE > | |
result_type | operator() (const TYPE &type) const |
template<class TYPE > | |
bslh::Hash< HASH_ALGORITHM >::result_type | operator() (TYPE const &key) const |
bslh::Hash< bslh::DefaultHashAlgorithm >::result_type | operator() (TYPE const &key) const |
This struct wraps the (template parameter) type HASH_ALGORITHM
in an interface that satisfies the hash
requirements of the C++11 standard.
typedef HASH_ALGORITHM bslh::Hash< HASH_ALGORITHM >::HashAlgorithm |
typedef size_t bslh::Hash< HASH_ALGORITHM >::result_type |
The type of the hash value that will be returned by the function-call operator.
|
default |
|
default |
Create a bslh::Hash
object. Note that as bslh::Hash
is an empty (stateless) type, this operation will have no observable effect.
|
default |
result_type bslh::Hash< HASH_ALGORITHM >::operator() | ( | const TYPE & | type | ) | const |
Returns a hash value generated by the (template parameter) type HASH_ALGORITHM
for the specified type
. The value returned by the HASH_ALGORITHM
is cast to size_t
before returning.
|
inline |
|
default |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object. Note that as bslh::Hash
is an empty (stateless) type, this operation will have no observable effect.