bsl::Pair_First<TYPE&>

Component-private base holding a pair's first member by lvalue reference.

Synopsis

Declared in <bslstl_pair.h>

template<class TYPE>
struct Pair_First<TYPE&>;

Description

This component-private class holds the first data member of a pair when that member is an lvalue-reference. Note that the C++ Standard defines the assignment operator to assign through the reference in this case, where the implicitly declared assignment operator would be deleted.

Protected Member Functions

NameDescription
Pair_First [constructor]Constructors
operator= Assign through the first reference from rhs.first.

Protected Data Members

NameDescription
first The first element of the pair, held by lvalue reference.