std::undeclare_no_pointers(3)

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

✨ NAME ✨

std::undeclare_no_pointers β€” std::undeclare_no_pointers

okay so bestie, this is the std::undeclare_no_pointers(3) page from the C++ Standard Libary manual, and it’s literally the cleanup bestie to std::declare_no_pointers(). πŸ’…


✨ Synopsis ✨

Defined in header <memory>

void undeclare_no_pointers( char *p, std::size_t n );  (since C++11)
                                                       (removed in C++23)

So this function unregisters a range that was earlier registered with std::declare_no_pointers(). That’s the whole plot. It existed since C++11 and got removed in C++23, so if you’re on newer C++ it’s giving β€œremember when?” 😭


🌸 Parameters 🌸

  • p β€” pointer to the beginning of the range previously registered with std::declare_no_pointers.
  • n β€” the number of bytes in the range, same value as previously used with std::declare_no_pointers.

πŸ’– Return value πŸ’–

(none) β€” literally no return value, bestie. 🫢


🫢 Exceptions 🫢

Throws nothing. Not a single exception. Iconic behavior. ✨


🌈 See also 🌈

  • declare_no_pointers β€” declares that a memory area does not contain traceable pointers. (C++11) (function) (removed in C++23)

later, bestie πŸ’… β€” this cutie came from source http://cppreference.com, version/date 2024.06.10, and the manual page is std::undeclare_no_pointers(3). mwah πŸŽ€

πŸ“¦ where this page comes from