Share via


declare_no_pointers

Informs a garbage collector that the characters in the memory block defined by a base address pointer and block size contains no traceable pointers.

void declare_no_pointers(
    char *_Ptr, 
    size_t _Size
);

Parameters

Parameter

Description

_Ptr

Address of first character that no longer contains traceable pointers.

_Size

Size of block that starts at _Ptr that contains no traceable pointers.

Remarks

The function informs any garbage collector that the range of addresses [_Ptr, _Ptr + _Size) no longer contain traceable pointers. (Any pointers to allocated storage must not be dereferenced unless made reachable.)

Requirements

Header: <memory>

Namespace: std

See Also

Reference

<memory>