[#BloombergLP-bdlb-NullableAllocatedValue_PointerBitsPair-setPointer] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableAllocatedValue_PointerBitsPair.adoc[NullableAllocatedValue_PointerBitsPair]::setPointer :relfileprefix: ../../../ :mrdocs: Set the held pointer to the value of the specified `new_ptr`. == Synopsis Declared in `<bdlb_nullableallocatedvalue_pointerbitspair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setPointer(t_TYPE* new_ptr); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#