Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslstl::HashTable_ComparatorWrapper< FUNCTOR & > Class Template Reference

#include <bslstl_hashtable.h>

List of all members.

Public Member Functions

 HashTable_ComparatorWrapper (FUNCTOR &fn)
template<class ARG1_TYPE , class ARG2_TYPE >
bool operator() (ARG1_TYPE &arg1, ARG2_TYPE &arg2) const
FUNCTOR & functor () const

Detailed Description

template<class FUNCTOR>
class bslstl::HashTable_ComparatorWrapper< FUNCTOR & >

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


Constructor & Destructor Documentation

template<class FUNCTOR >
bslstl::HashTable_ComparatorWrapper< FUNCTOR & >::HashTable_ComparatorWrapper ( FUNCTOR &  fn  )  [explicit]

Create a HashTable_ComparatorWrapper object wrapping a FUNCTOR that is a copy of the specified fn.


Member Function Documentation

template<class FUNCTOR >
template<class ARG1_TYPE , class ARG2_TYPE >
bool bslstl::HashTable_ComparatorWrapper< FUNCTOR & >::operator() ( ARG1_TYPE &  arg1,
ARG2_TYPE &  arg2 
) const

Call the wrapped functor with the specified arg1 and arg2 (in that order) and return the result. Note that ARGn_TYPE will typically be deduced as a const type.

template<class FUNCTOR >
FUNCTOR& bslstl::HashTable_ComparatorWrapper< FUNCTOR & >::functor (  )  const

Return a reference providing non-modifiable access to the hash functor wrapped by this object.


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