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