bsl::Pair_Second<TYPE&>::Pair_Second

Bind second to the entity bound to other.second.

Synopsis

Declared in <bslstl_pair.h>

Pair_Second(Pair_Second const& other) = default;

Description

Bind to second the entity of (template parameter) TYPE that is bound to the second reference of other. Note that, unlike the primary template, these constructors must be declared and defaulted as the user-declared copy-assignment operator would inhibit the declaration of the move constructor, which in turn would mean that the implicitly declared constructors for the derived pair class would be just the copy constructor taking a const reference, even when the second element is move-only. Declaring the move constructor deletes the copy constructor unless it too is declared and defaulted.

Parameters

NameDescription
otherobject whose second reference is copied