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

Name

Description

Pair_First [constructor]

Constructors

Protected Data Members

Name

Description

first

First element of the pair.

Specializations

Name

Description

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

Name

Description

pair

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

Created with MrDocs