[#BloombergLP-bslstl-Pair_GetImpUtil-0d-getPairElement-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Pair_GetImpUtil-0d.adoc[Pair&lowbar;GetImpUtil&lt;0, T1, T2&gt;]::getPairElement
:relfileprefix: ../../../
:mrdocs:

`getPairElement` overloads

== Synopses

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

Return a reference providing modifiable access to the first element of the specified `p`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
T1&
xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-08.adoc[getPairElement](xref:bsl/pair-0b.adoc[bsl::pair&lt;T1, T2&gt;]& p) noexcept;
----

[.small]#xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-08.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the first element of the specified `p`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
T1 const&
xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-0e.adoc[getPairElement](xref:bsl/pair-0b.adoc[bsl::pair&lt;T1, T2&gt;] const& p) noexcept;
----

[.small]#xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-0e.adoc[_» more&period;&period;&period;_]#

Return a rvalue reference providing modifiable access to the first element of the specified `p`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
T1&&
xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-05.adoc[getPairElement](xref:bsl/pair-0b.adoc[bsl::pair&lt;T1, T2&gt;]&& p) noexcept;
----

[.small]#xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-05.adoc[_» more&period;&period;&period;_]#

Return a rvalue reference providing non&hyphen;modifiable access to the first element of the specified `p`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
T1 const&&
xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-0a.adoc[getPairElement](xref:bsl/pair-0b.adoc[bsl::pair&lt;T1, T2&gt;] const&& p) noexcept;
----

[.small]#xref:BloombergLP/bslstl/Pair_GetImpUtil-0d/getPairElement-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable reference to the first element of `p`
* non&hyphen;modifiable reference to the first element of `p`
* modifiable rvalue reference to the first element of `p`
* non&hyphen;modifiable rvalue reference to the first element of `p`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| pair whose first element is returned
|===


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