BloombergLP::bslma::ManagedPtr::ManagedPtr

Create an empty managed pointer from two null-pointer literals.

Synopsis

Declared in <bslma_managedptr.h>

explicit
ManagedPtr(
    bsl::nullptr_t nullPointerLiteral,
    bsl::nullptr_t cookieNullPointerLiteral);

Description

Create an empty managed pointer. Note that this constructor is necessary to match null-pointer literal arguments, in order to break ambiguities and provide valid type deduction with the other constructor templates in this class.

Parameters

NameDescription
nullPointerLiteralnull-pointer literal (unused; selects this overload)
cookieNullPointerLiteralnull-pointer literal (unused; selects this overload)