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

Return `std&colon;&colon;pair` containing references to the fields of the specified `pair`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;FIRST,
    class t&lowbar;SECOND&gt;
constexpr
std::pair&lt;t&lowbar;FIRST&, t&lowbar;SECOND&&gt;
stdPairRefAdaptor(xref:bsl/pair-0b.adoc[bsl::pair&lt;t&lowbar;FIRST, t&lowbar;SECOND&gt;]& pair);
----

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

== Return Value

`std&colon;&colon;pair` of references to the fields of `pair`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pair*
| pair whose fields are referenced
|===


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