Construct the second member of a pair with no allocator argument.
Synopsis
Declared in <bslstl_pair.h>
Pair_Second(
BloombergLP::bslma::Allocator* basicAllocator,
Pair_BslmaIdiomNone idiom);
Description
Construct the second 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.
Parameters
Name |
Description |
basicAllocator |
allocator used to supply memory |
idiom |
tag selecting the no‐allocator construction idiom |
Created with MrDocs