BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::Pair_First< TYPE > Struct Template Reference

#include <bslstl_pair.h>

Inheritance diagram for bsl::Pair_First< TYPE >:
bsl::pair< bsl::string, int > bsl::pair< KEY, VALUE > bsl::pair< int, unsigned >

Public Member Functions

BSLS_KEYWORD_CONSTEXPR Pair_First ()
 
 Pair_First (BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomNone)
 
 Pair_First (BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAtEnd)
 
 Pair_First (BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAllocatorArgT)
 
BSLS_KEYWORD_CONSTEXPR Pair_First (typename bsl::add_lvalue_reference< const TYPE >::type value)
 
template<class PARAM >
BSLS_KEYWORD_CONSTEXPR Pair_First (const PARAM &value)
 
template<class PARAM >
BSLS_KEYWORD_CONSTEXPR Pair_First (PARAM &value)
 
template<class PARAM >
 Pair_First (const PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomNone)
 
template<class PARAM >
 Pair_First (PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomNone)
 
template<class PARAM >
 Pair_First (const PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAtEnd)
 
template<class PARAM >
 Pair_First (PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAtEnd)
 
template<class PARAM >
 Pair_First (const PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAllocatorArgT)
 
template<class PARAM >
 Pair_First (PARAM &value, BloombergLP::bslma::Allocator *basicAllocator, Pair_BslmaIdiomAllocatorArgT)
 
 Pair_First (const Pair_First &)=default
 
 Pair_First (Pair_First &&)=default
 
Pair_Firstoperator= (Pair_First &&)=default
 
 ~Pair_First ()=default
 

Public Attributes

TYPE first
 

Detailed Description

template<class TYPE>
struct bsl::Pair_First< TYPE >

This component-private class holds the first data member of a pair and constructs it appropriately.

Constructor & Destructor Documentation

◆ Pair_First() [1/15]

template<class TYPE >
BSLS_KEYWORD_CONSTEXPR bsl::Pair_First< TYPE >::Pair_First ( )
inline

◆ Pair_First() [2/15]

template<class TYPE >
bsl::Pair_First< TYPE >::Pair_First ( BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomNone   
)
inline

◆ Pair_First() [3/15]

template<class TYPE >
bsl::Pair_First< TYPE >::Pair_First ( BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAtEnd   
)
inline

◆ Pair_First() [4/15]

template<class TYPE >
bsl::Pair_First< TYPE >::Pair_First ( BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAllocatorArgT   
)
inline

Construct the first member of a pair, using the specified basicAllocator to supply memory. Note that exactly one of these three constructors is enabled at compile-time for (template parameter) type TYPE based on the following respective criteria: 1) TYPE does not support bslma-style allocators, 2) TYPE takes a bslma-style allocator as the last constructor argument, and 3) TYPE takes a bslma-style allocator as the second constructor argument preceded by bsl::allocator_arg.

◆ Pair_First() [5/15]

template<class TYPE >
BSLS_KEYWORD_CONSTEXPR bsl::Pair_First< TYPE >::Pair_First ( typename bsl::add_lvalue_reference< const TYPE >::type  value)
inlineexplicit

Construct the first member from the specified non-modifiable value, without specifying an allocator.

◆ Pair_First() [6/15]

template<class TYPE >
template<class PARAM >
BSLS_KEYWORD_CONSTEXPR bsl::Pair_First< TYPE >::Pair_First ( const PARAM &  value)
inlineexplicit

◆ Pair_First() [7/15]

template<class TYPE >
template<class PARAM >
BSLS_KEYWORD_CONSTEXPR bsl::Pair_First< TYPE >::Pair_First ( PARAM &  value)
inlineexplicit

◆ Pair_First() [8/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( const PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomNone   
)
inline

◆ Pair_First() [9/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomNone   
)
inline

◆ Pair_First() [10/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( const PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAtEnd   
)
inline

◆ Pair_First() [11/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAtEnd   
)
inline

◆ Pair_First() [12/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( const PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAllocatorArgT   
)
inline

◆ Pair_First() [13/15]

template<class TYPE >
template<class PARAM >
bsl::Pair_First< TYPE >::Pair_First ( PARAM &  value,
BloombergLP::bslma::Allocator *  basicAllocator,
Pair_BslmaIdiomAllocatorArgT   
)
inline

◆ Pair_First() [14/15]

template<class TYPE >
bsl::Pair_First< TYPE >::Pair_First ( const Pair_First< TYPE > &  )
default

◆ Pair_First() [15/15]

template<class TYPE >
bsl::Pair_First< TYPE >::Pair_First ( Pair_First< TYPE > &&  )
default

◆ ~Pair_First()

template<class TYPE >
bsl::Pair_First< TYPE >::~Pair_First ( )
default

Member Function Documentation

◆ operator=()

template<class TYPE >
Pair_First & bsl::Pair_First< TYPE >::operator= ( Pair_First< TYPE > &&  )
default

Member Data Documentation

◆ first

template<class TYPE >
TYPE bsl::Pair_First< TYPE >::first

The documentation for this struct was generated from the following file: