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.

Synopsis

Declared in <bslstl_pair.h>

pair(
    pair const& original,
    BloombergLP::bslma::Allocator* basicAllocator);

Created with MrDocs