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

Constructors

== Synopses

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

Create a `MapComparator` object that will use a default constructed `COMPARATOR`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/MapComparator/2constructor-04.adoc[MapComparator]();
----

[.small]#xref:BloombergLP/bslstl/MapComparator/2constructor-04.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslstl/MapComparator/2constructor-0d.adoc[MapComparator](COMPARATOR const& keyComparator);
----

[.small]#xref:BloombergLP/bslstl/MapComparator/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *keyComparator*
| comparator used to order keys
|===


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