[#bsl-set-0d-equal_range-08f]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::equal&lowbar;range
:relfileprefix: ../../
:mrdocs:

Return the half&hyphen;open range of elements equivalent to `key`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/pair-0b.adoc[pair&lt;iterator, iterator&gt;]
equal&lowbar;range(xref:bsl/set-0d/key_type.adoc[key&lowbar;type] const& key);
----

== Description

Return a pair of iterators providing modifiable access to the sequence of `value&lowbar;type` objects in this set that are equivalent to the specified `key`, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence&period; The first returned iterator will be `lower&lowbar;bound(key)`&semi; the second returned iterator will be `upper&lowbar;bound(key)`&semi; and, if this set contains no `value&lowbar;type` objects equivalent to `key`, then the two returned iterators will have the same value&period; Note that since a set maintains unique keys, the range will contain at most one element&period;

Note&colon; implemented inline due to Sun CC compilation error&period;

== Return Value

pair of iterators delimiting the equivalent range

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key value to look up
|===


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