std::pmr::memory_resource(3)
std::pmr::memory_resource π
okay so bestie, this is the std::pmr::memory_resource(3) page from the C++ Standard Libary manual, and we're gonna get you comfy with it β no cap, it's lowkey iconic π«Άβ¨
πΈ NAME πΈ
std::pmr::memory_resource β literally std::pmr::memory_resource π
β¨ Synopsis β¨
Defined in header <memory_resource>
class memory_resource; (since C++17)
The class std::pmr::memory_resource is an abstract interface to an unbounded set of classes encapsulating memory resources. it's giving "abstract interface to an unbounded set of classes encapsulating memory resources" and honestly? slay π
π Member functions π
- constructor β constructs a new
memory_resource(implicitly declared) (public member function) - destructor β destructs a
memory_resource[virtual](virtual public member function) operator=β Implicitly declared copy assignment operator (implicitly declared) (public member function)
π Public member functions π
allocateβ allocates memory (public member function)deallocateβ deallocates memory (public member function)is_equalβ compare for equality with anothermemory_resource(public member function)
π¦ Private member functions π¦
do_allocateβ allocates memory[virtual](virtual private member function)do_deallocateβ deallocates memory[virtual](virtual private member function)do_is_equalβ compare for equality with anothermemory_resource[virtual](virtual private member function)
π Non-member-functions π
operator==β compare twomemory_resources(function)operator!=β (function) (removed in C++20)
β Notes β
feature-test macro moment β here's the info, listified for the group chat:
- Feature-test macro:
__cpp_lib_memory_resource - Value:
201603L - Std:
(C++17) - Feature:
std::pmr::memory_resource
mwah π β this one came from http://cppreference.com, version/date 2024.06.10, for std::pmr::memory_resource(3). byeee, go off and be the main character of your own memory resources π«Άβ¨
π¦ 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