Partial specialization wrapping a const‐qualified comparator.
Synopsis
Declared in <bslstl_hashtable.h>
template<class FUNCTOR>
class HashTable_ComparatorWrapper<FUNCTOR const>;
Description
This partial specialization handles const qualified functors, that may not be stored as a mutable member in the primary template. The need to wrap such functors diminishes greatly, as there is no need to play mutable tricks to invoke the function call operator. An alternative to providing this specialization would be to skip the wrapper entirely if using a const qualified functor in a HashTable. Note that this type has a const qualified data member, so is neither assignable nor swappable.
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 |
Created with MrDocs