std::declare_no_pointers(3)
π std::declare_no_pointers(3) β C++ Standard Libary π
π NAME π
std::declare_no_pointers β okay bestie, it's literally the function std::declare_no_pointers, chillin' in the C++ Standard Libary. That's the whole name section, no cap.
β¨ Synopsis β¨
So this icon is defined in header <memory>, and the signature is giving:
Defined in header <memory>
void declare_no_pointers( char *p, std::size_t n ); (since C++11)
(removed in C++23)
It informs the garbage collector or leak detector that the specified memory region β n bytes beginning at the byte pointed to by p β contains no traceable pointers. If any part of the region is within an allocated object, the entire region must be contained in the same object. Periodt. π«Ά
π Parameters π
pβ pointer to the beginning of the rangenβ the number of bytes in the range
πΈ Return value πΈ
(none)β literally no return value, bestie. π
π Exceptions π
Throws nothing. No exceptions here, fr fr.
π¦ See also π¦
undeclare_no_pointersβ cancels the effect ofstd::declare_no_pointers(C++11) (function) (removed in C++23)
xoxo, bestie π β source/version: cppreference.com, date: 2024.06.10 π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms