Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions

bdlb::TransparentHash Struct Reference

#include <bdlb_transparenthash.h>

List of all members.

Public Types

typedef void is_transparent

Public Member Functions

 TransparentHash ()
 TransparentHash (const TransparentHash &original)
 ~TransparentHash ()
TransparentHashoperator= (const TransparentHash &rhs)
template<class TYPE >
std::size_t operator() (const TYPE &value) const

Detailed Description

This struct defines a hash operation for different types, enabling them for use for heterogeneous lookup in the standard associative containers such as bsl::unordered_map. Note that this class is an empty POD type.

See Component bdlb_transparenthash


Member Typedef Documentation


Constructor & Destructor Documentation

bdlb::TransparentHash::TransparentHash (  ) 

Create a TransparentHash object.

bdlb::TransparentHash::TransparentHash ( const TransparentHash original  ) 

Create a TransparentHash object. Note that as TransparentHash is an empty (stateless) type, this operation has no observable effect.

bdlb::TransparentHash::~TransparentHash (  ) 

Destroy this object.


Member Function Documentation

TransparentHash& bdlb::TransparentHash::operator= ( const TransparentHash rhs  ) 

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. Note that as TransparentHash is an empty (stateless) type, this operation has no observable effect.

template<class TYPE >
std::size_t bdlb::TransparentHash::operator() ( const TYPE &  value  )  const

Return a hash code generated from the contents of the specified value.


The documentation for this struct was generated from the following file: