Wrapper ensuring a comparator's call operator is const‐qualified.
Synopsis
Declared in <bslstl_hashtable.h>
template<class FUNCTOR>
class HashTable_ComparatorWrapper;
Description
This class provides a wrapper around a functor that can compare two values and return a bool, so that the function call operator is always declared as const qualified.
TBD Provide an optimization for the case of an empty base functor, where we can safely const_cast want calling the base class operator.
Member Functions
Name |
Description |
|
Constructors |
Return a reference providing non‐modifiable access to the hash functor wrapped by this object. |
|
Call the wrapped comparator with |
|
Exchange the wrapped comparator with that of |
Specializations
Name |
Description |
Partial specialization wrapping a const‐qualified comparator. |
|
Partial specialization wrapping a comparator reference. |