[#bsl-get-0b3]
= xref:bsl.adoc[bsl]::get
:relfileprefix: ../
:mrdocs:

Return a rvalue reference providing modifiable access to the element of the specified `p`, having the ordinal number specified by the (template parameter) `INDEX`&period; This function will not compile unless the `INDEX` is either 0 or 1&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::size&lowbar;t INDEX,
    class T1,
    class T2&gt;
std::tuple&lowbar;element&lt;INDEX, bsl::pair&lt;T1, T2&gt;&gt;::type&&
get(xref:bsl/pair-0b.adoc[bsl::pair&lt;T1, T2&gt;]&& p) noexcept;
----


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