[#bsl-Pair_Second-01-2constructor-07] = xref:bsl.adoc[bsl]::xref:bsl/Pair_Second-01.adoc[Pair_Second<TYPE&>]::Pair_Second :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstl_pair.h>` Bind `second` to the entity bound to `other.second`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/Pair_Second-01/2constructor-089.adoc[Pair_Second](xref:bsl/Pair_Second-01.adoc[Pair_Second] const& other) = default; ---- [.small]#xref:bsl/Pair_Second-01/2constructor-089.adoc[_» more..._]# Bind `second` to the entity bound to `other.second`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/Pair_Second-01/2constructor-00.adoc[Pair_Second](xref:bsl/Pair_Second-01.adoc[Pair_Second]&& other) = default; ---- [.small]#xref:bsl/Pair_Second-01/2constructor-00.adoc[_» more..._]# Bind the specified `value` into the `second` reference‐member. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:bsl/Pair_Second-01/2constructor-08d.adoc[Pair_Second](TYPE& value); ---- [.small]#xref:bsl/Pair_Second-01/2constructor-08d.adoc[_» more..._]# Bind the specified `value` into the `second` reference‐member. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PARAM, class = void> requires std::is_constructible<TYPE, PARAM>::value constexpr explicit xref:bsl/Pair_Second-01/2constructor-0e.adoc[Pair_Second](PARAM&& value); ---- [.small]#xref:bsl/Pair_Second-01/2constructor-0e.adoc[_» more..._]# Construct the `second` member from the single element of `arg`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ARG> constexpr xref:bsl/Pair_Second-01/2constructor-04.adoc[Pair_Second]( std::tuple<ARG>&& arg, xref:BloombergLP/bslstl/Pair_IndexSequence.adoc[BloombergLP::bslstl::Pair_IndexSequence<0U>] indices); ---- [.small]#xref:bsl/Pair_Second-01/2constructor-04.adoc[_» more..._]# Bind `value` into `second`; the allocator argument is not used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class PARAM> constexpr xref:bsl/Pair_Second-01/2constructor-0c.adoc[Pair_Second]( PARAM&& value, xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator, xref:bsl/Pair_BslmaIdiomNone.adoc[Pair_BslmaIdiomNone] idiom); ---- [.small]#xref:bsl/Pair_Second-01/2constructor-0c.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | object whose `second` reference is copied | *value* | entity to bind into the `second` reference‐member | *arg* | single‐element tuple forwarded to the constructor of `TYPE` | *indices* | index sequence enumerating the elements of `arg` | *basicAllocator* | allocator argument, which is not used | *idiom* | tag selecting the no‐allocator construction idiom |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#