Component‐private base holding and constructing a pair's second member.

Synopsis

Declared in <bslstl_pair.h>

template<class TYPE>
struct Pair_Second;

Description

This component‐private class holds the second 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_Second [constructor]

Constructors

Protected Data Members

Name

Description

second

Second element of the pair.

Specializations

Name

Description

Pair_Second<TYPE&>

Component‐private base holding a pair's second member by lvalue reference.

Pair_Second<TYPE&&>

Component‐private base holding a pair's second 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