std::pmr::memory_resource(3cxx)

okay bestie, welcome to the std::pmr::memory_resource(3cxx) page β€” it's giving libstdc++ memory-resource main character energy, and we are going to get through every single detail together πŸ’–βœ¨

πŸ’– NAME πŸ’–

std::pmr::memory_resource β€” Class memory_resource. Short, iconic, no cap 🫢

✨ SYNOPSIS ✨

#include <memory_resource>

Inherited by std::pmr::monotonic_buffer_resource, and std::pmr::unsynchronized_pool_resource. The inheritance tree is slaying 🌈

🌸 Public Member Functions 🌸

  • memory_resource (const memory_resource &)=default β€” constructor signature, defaulted, just like that πŸ’…
  • void * allocate (size_t __bytes, size_t __alignment=_S_max_align) β€” allocate signature with _S_max_align as the default alignment, exact πŸŽ€
  • void deallocate (void *__p, size_t __bytes, size_t __alignment=_S_max_align) β€” deallocate signature, same default alignment energy ✨
  • bool is_equal (const memory_resource &__other) const noexcept β€” the equality-check signature, and it's const noexcept, periodt πŸ’œ
  • memory_resource & operator= (const memory_resource &)=default β€” assignment operator signature, defaulted, iconic πŸ‘‘

πŸ¦‹ Detailed Description πŸ¦‹

Class memory_resource. That's the description, bestie β€” sometimes less is more πŸ˜­πŸ‘‘

⭐ Since ⭐

C++17. Periodt πŸ’œ

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. The robots really wrote this one and they ate πŸ€–βœ¨


Okay that's the whole page, bestie. Cute sign-off time: shoutout to libstdc++ and the 3cxx page β€” the footer's source/version is libstdc++, and there's no date listed there, so I'm not inventing one, just sending you this sparkly generated-by-Doxygen energy πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from