std::declare_no_pointers(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 range
  • n β€” 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 of std::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