This class is a simple aggregate that may be used to construct a bsl::pair object. It will be a POD if the (template parameter) ASSOCIATED_TYPE is a POD. Note that the names of the data members must exactly match those of bsl::pair to support users simply acting on the result of a function call from which a pair proxy is returned, and not assigning that result to a bsl::pair first.

Synopsis

Declared in <bslma_managedptr_pairproxy.h>

template<
    class POINTER_TYPE,
    class ASSOCIATED_TYPE>
struct ManagedPtr_PairProxy;

Data Members

Name

Description

first

Address of the managed pointer.

second

Associated object paired with the managed pointer in first.

Created with MrDocs