Set the exposed pointer to the specified alias.

Synopsis

Declared in <bslma_managedptr_members.h>

void
setAliasPtr(void* alias);

Description

Set pointer to have the specified alias. If 0 == alias, then this object will have an unset state with no effect on the previously managed object (if any). The behavior is undefined unless 0 == pointer() if and only if 0 == alias.

Parameters

Name

Description

alias

address to expose as the managed pointer value

Created with MrDocs