[#BloombergLP-bslstl-MapComparator-0d-2constructor-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/MapComparator-0d.adoc[MapComparator]::MapComparator
:relfileprefix: ../../../
:mrdocs:

Create a `MapComparator` object holding a copy of the specified `keyComparator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
MapComparator(COMPARATOR const& keyComparator);
----


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