[#absl-RegisterLivePointers]
= xref:absl.adoc[absl]::RegisterLivePointers
:relfileprefix: ../
:mrdocs:

Registers `ptr&lsqb;0,size&hyphen;1&rsqb;` as pointers to memory that is still actively being referenced and for which leak checking should be ignored&period; This function is useful if you store pointers in mapped memory, for memory ranges that we know are correct but for which normal analysis would flag as leaked code&period;

== Synopsis

Declared in `&lt;absl&sol;debugging&sol;leak&lowbar;check&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
RegisterLivePointers(
    void const* ptr,
    size&lowbar;t size);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| Pointer to the start of the memory range to register&period;
| *size*
| Size, in bytes, of the memory range to register&period;
|===


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