BloombergLP::bslstl::HashTable_ComparatorWrapper<FUNCTOR&>

Partial specialization wrapping a comparator reference.

Synopsis

Declared in <bslstl_hashtable.h>

template<class FUNCTOR>
class HashTable_ComparatorWrapper<FUNCTOR&>;

Description

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.

Member Functions

NameDescription
HashTable_ComparatorWrapper [constructor]Create a wrapper around the specified comparator fn.
functor Return a reference providing non-modifiable access to the hash functor wrapped by this object.
operator() Call the wrapped comparator with arg1 and arg2.