Constructors
Synopses
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>;
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);
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);
Construct the second member using the allocator_arg idiom.
Pair_Second(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAllocatorArgT idiom);
Construct the second member with the allocator as the last argument.
Pair_Second(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAtEnd idiom);
Construct the second member of a pair with no allocator argument.
Pair_Second(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
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);
Construct the second member using the specified basicAllocator.
template<class PARAM>
Pair_Second(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomAllocatorArgT idiom);
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);
Construct the second member from value, ignoring the allocator.
template<class PARAM>
Pair_Second(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
Parameters
Name |
Description |
value |
value copied into the |
basicAllocator |
allocator used to supply memory |
idiom |
tag selecting the |
argsPack |
tuple of arguments forwarded to the constructor of |
indices |
index sequence enumerating the elements of |
Created with MrDocs