Construct the second member from value, ignoring the allocator.
Synopsis
Declared in <bslstl_pair.h>
template<class PARAM>
Pair_Second(
PARAM&& value,
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
Description
Construct the second member of a pair from the specified value, using the specified basicAllocator to supply memory. This function (perfectly) forwards value to the constructor of (template parameter) TYPE. 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.
Parameters
Name |
Description |
value |
value forwarded to the constructor of |
basicAllocator |
allocator used to supply memory |
idiom |
tag selecting the no‐allocator construction idiom |
Created with MrDocs