Constructors

Synopses

Declared in <bslstl_pair.h>

Bind first to the entity bound to other.first.

Pair_First(Pair_First const& other) = default;

Bind first to the entity bound to other.first.

Pair_First(Pair_First&& other) = default;

Bind the specified value into the first reference‐member.

constexpr
explicit
Pair_First(TYPE&& value);

Bind the specified value into the first reference‐member.

template<
    class PARAM,
    class = void>
requires std::is_constructible<TYPE, PARAM>::value
constexpr
explicit
Pair_First(PARAM&& value);

Construct the first member from the single element of arg.

template<class ARG>
constexpr
Pair_First(
    std::tuple<ARG>&& arg,
    BloombergLP::bslstl::Pair_IndexSequence<0U> indices);

Bind value into first; the allocator argument is not used.

template<class PARAM>
constexpr
Pair_First(
    PARAM&& value,
    BloombergLP::bslma::Allocator* basicAllocator,
    Pair_BslmaIdiomNone idiom);

Parameters

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

Created with MrDocs