Copy original using basicAllocator to supply memory.
Synopsis
Declared in <bslstl_pair.h>
pair(
pair const& original,
BloombergLP::bslma::Allocator* basicAllocator);
Description
Construct a pair having the same value as that of the specified original pair. Optionally specify a basicAllocator, used to supply memory for each of first and second when its type (template parameter T1 or T2, respectively) uses bslma‐style allocators. Note that the copy constructor is implicitly declared (if T1 and T2 are both copy‐constructible) by compilers that do not support defaulted declarations.
Parameters
Name |
Description |
original |
pair whose value is copied |
basicAllocator |
allocator used to supply memory |
Created with MrDocs