bsl::Pair_First

Component-private base holding and constructing a pair's first member.

Synopsis

Declared in <bslstl_pair.h>

template<class TYPE>
struct Pair_First;

Description

This component-private class holds the first data member of a pair and constructs it appropriately. Note the partial specializations below for the cases that (template parameter) 'TYPE' is a reference.

Protected Member Functions

NameDescription
Pair_First [constructor]Constructors

Protected Data Members

NameDescription
first First element of the pair.

Specializations

NameDescription
Pair_First<TYPE&> Component-private base holding a pair's first member by lvalue reference.
Pair_First<TYPE&&> Component-private base holding a pair's first member by rvalue reference.

Derived Classes

NameDescription
pair A pair of public data members, first and second, that supports bslma allocators.