[#BloombergLP-bslstl-HashTable_ComparatorWrapper-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-0e.adoc[HashTable&lowbar;ComparatorWrapper]&lt;FUNCTOR&&gt;
:relfileprefix: ../../
:mrdocs:

Partial specialization wrapping a comparator reference&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FUNCTOR&gt;
class xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-0e.adoc[HashTable&lowbar;ComparatorWrapper]&lt;FUNCTOR&&gt;;
----

== Description

This partial specialization handles `const` qualified functors, that may not be stored as a `mutable` member in the primary template&period; Note that the `FUNCTOR` type itself may be `const`&hyphen;qualified, so this one partial template specialization also handles `const FUNCTOR&amp;` references&period; In order to correctly parse with the reference&hyphen;binding rules, we drop the `const` in front of many of the references to `FUNCTOR` seen in the primary template definition&period; Note that this type has a reference data member, so is not default constructible, assignable or swappable&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-07/2constructor.adoc[`HashTable&lowbar;ComparatorWrapper`]         [.small]#[constructor]#
| Create a wrapper around the specified comparator `fn`&period;
| xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-07/functor.adoc[`functor`] 
| Return a reference providing non&hyphen;modifiable access to the hash functor wrapped by this object&period;
| xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-07/operator_call.adoc[`operator()`] 
| Call the wrapped comparator with `arg1` and `arg2`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
