[#BloombergLP-bdlb-NullableAllocatedValue_PointerBitsPair-setPointer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue&lowbar;PointerBitsPair]::setPointer
:relfileprefix: ../../../
:mrdocs:

Set the held pointer to the value of the specified `new&lowbar;ptr`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullableallocatedvalue&lowbar;pointerbitspair&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setPointer(t&lowbar;TYPE* new&lowbar;ptr);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;ptr*
| pointer to store
|===


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