[#BloombergLP-bslma-ManagedPtr_Members-setAliasPtr]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr_Members.adoc[ManagedPtr&lowbar;Members]::setAliasPtr
:relfileprefix: ../../../
:mrdocs:

Set the exposed pointer to the specified `alias`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;managedptr&lowbar;members&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setAliasPtr(void* alias);
----

== Description

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *alias*
| address to expose as the managed pointer value
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
