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
Name |
Description |
nullPointerLiteral |
null‐pointer literal (unused; selects this overload) |
cookieNullPointerLiteral |
null‐pointer literal (unused; selects this overload) |
Created with MrDocs