Move original using basicAllocator to supply memory.

Synopsis

Declared in <bslstl_pair.h>

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

Description

Construct a pair having the same value as that of the specified original using the specified basicAllocator to supply memory for each of first and second when its type (template parameter T1 or T2, respectively) uses bslma‐style allocators. Note that original is left in a valid but unspecified state. Also note that this method requires that T1 and T2 be move‐constructible. Note this this constructor will not be deleted when the implicitly declared move constructor is deleted, and will produce an error when it is called in such cases.

Parameters

Name

Description

original

pair whose value is moved from

basicAllocator

allocator used to supply memory

Created with MrDocs