Constructors
Declared in <bslstl_pair.h>
Value-initialize the 'first' member of a 'pair'. This constructor is declared only if (template parameter) TYPE is default constructible.
constexpr
Pair_First()
requires std::is_default_constructible_v<TYPE>;
» more...
Construct the first member from the specified non-modifiable value, without specifying an allocator.
constexpr
explicit
Pair_First(bsl::add_lvalue_reference<TYPE const>::type value);
» more...
Construct the first member from the specified value.
template<
class PARAM,
class = void>
requires !bsl::is_same<Pair_First, bsl::remove_cvref_t<PARAM>>::value
constexpr
explicit
Pair_First(PARAM&& value);
» more...
Construct the first member using the allocator_arg idiom.
Pair_First(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAllocatorArgT idiom);
» more...
Construct the first member with the allocator as the last argument.
Pair_First(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAtEnd idiom);
» more...
Construct the first member of a pair with no allocator argument.
Pair_First(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
» more...
Construct the first member from the elements of argsPack.
template<
class... ARGS,
size_t I...>
Pair_First(
std::tuple<ARGS...>&& argsPack,
BloombergLP::bslstl::Pair_IndexSequence<I...> indices);
» more...
Construct the first member using the specified value and basicAllocator, with Pair_BslmaIdiomAllocatorArgT placement.
template<class PARAM>
Pair_First(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAllocatorArgT idiom);
» more...
Construct the first member using the specified value and basicAllocator, with Pair_BslmaIdiomAtEnd placement.
template<class PARAM>
Pair_First(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAtEnd idiom);
» more...
Construct the first member from value, ignoring the allocator.
template<class PARAM>
Pair_First(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
» more...
| Name | Description |
|---|---|
| value | value copied into the first member |
| basicAllocator | allocator used to supply memory |
| idiom | tag selecting the allocator_arg construction idiom |
| argsPack | tuple of arguments forwarded to the constructor of TYPE |
| indices | index sequence enumerating the elements of argsPack |