[#BloombergLP-bdlb-PairUtil-adaptForRanges]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PairUtil.adoc[PairUtil]::adaptForRanges
:relfileprefix: ../../../
:mrdocs:

Translate a range of `bsl&colon;&colon;pair`s to a range of `std&colon;&colon;pair`s&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;pairutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;RANGE&lowbar;BSL&lowbar;PAIR&gt;
decltype(bsl&colon;&colon;views&colon;&colon;transform(
                            bsl&colon;&colon;forward&lt;t&lowbar;RANGE&lowbar;BSL&lowbar;PAIR&gt;(bslRange),
                            std&colon;&colon;declval&lt;const PairUtil&lowbar;StdPairRefAdaptor&amp;&gt;()))
adaptForRanges(t&lowbar;RANGE&lowbar;BSL&lowbar;PAIR&& bslRange);
----

[NOTE]
====
This function is defined as an https://en.cppreference.com/cpp/algorithm/ranges#Algorithm_function_objects[Algorithm Function Object (AFO)].
====

== Description

Given a range of `bsl&colon;&colon;pairs`, translate it to a range of `std&colon;&colon;pair`s, where each element of the resulting `std&colon;&colon;pair`s is a reference to corresponding member of the corresponding element of the bsl range&period;

== Return Value

adapted range of `std&colon;&colon;pair`s

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bslRange*
| range of `bsl&colon;&colon;pair`s to adapt
|===


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