[#bsl-Pair_First-09-2constructor-0b0] = xref:bsl.adoc[bsl]::xref:bsl/Pair_First-09.adoc[Pair_First<TYPE&&>]::Pair_First :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstl_pair.h>` Bind `first` to the entity bound to `other.first`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/Pair_First-09/2constructor-03.adoc[Pair_First](xref:bsl/Pair_First-09.adoc[Pair_First] const& other) = default; ---- [.small]#xref:bsl/Pair_First-09/2constructor-03.adoc[_» more..._]# Bind `first` to the entity bound to `other.first`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/Pair_First-09/2constructor-04.adoc[Pair_First](xref:bsl/Pair_First-09.adoc[Pair_First]&& other) = default; ---- [.small]#xref:bsl/Pair_First-09/2constructor-04.adoc[_» more..._]# Bind the specified `value` into the `first` reference‐member. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:bsl/Pair_First-09/2constructor-02.adoc[Pair_First](TYPE&& value); ---- [.small]#xref:bsl/Pair_First-09/2constructor-02.adoc[_» more..._]# Bind the specified `value` into the `first` 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_First-09/2constructor-0b4.adoc[Pair_First](PARAM&& value); ---- [.small]#xref:bsl/Pair_First-09/2constructor-0b4.adoc[_» more..._]# Construct the `first` member from the single element of `arg`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ARG> constexpr xref:bsl/Pair_First-09/2constructor-0e.adoc[Pair_First]( std::tuple<ARG>&& arg, xref:BloombergLP/bslstl/Pair_IndexSequence.adoc[BloombergLP::bslstl::Pair_IndexSequence<0U>] indices); ---- [.small]#xref:bsl/Pair_First-09/2constructor-0e.adoc[_» more..._]# Bind `value` into `first`; the allocator argument is not used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class PARAM> constexpr xref:bsl/Pair_First-09/2constructor-01.adoc[Pair_First]( PARAM&& value, xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator, xref:bsl/Pair_BslmaIdiomNone.adoc[Pair_BslmaIdiomNone] idiom); ---- [.small]#xref:bsl/Pair_First-09/2constructor-01.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | object whose `first` reference is copied | *value* | entity to bind into the `first` 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]#