std::experi...do_allocate(3)
π std::experi...do_allocate(3) π
okay bestie, this page is from the C++ Standard Libary manual, and itβs giving pure-virtual allocation energy. No cap. Hereβs the whole thing, with zero facts dropped. π«Ά
β¨ NAME β¨
std::experimental::pmr::memory_resource::do_allocate β and yes, the page says it again: std::experimental::pmr::memory_resource::do_allocate.
π Synopsis π
virtual void* do_allocate( std::size_t bytes, std::size_t alignment ) = 0;
This is the (library fundamentals TS) version, just so you know. β¨
Allocates storage with a size of at least bytes bytes. The returned storage is aligned to the specified alignment if such alignment is supported, and to alignof(std::max_align_t) otherwise.
alignment shall be a power of two. Thatβs the rule, bestie β not a vibe suggestion. π
π₯ Exceptions π₯
Throws an exception if storage of the requested size and alignment cannot be obtained. So if it canβt get the goods, it throws. Periodt. π
π See also π
allocateallocates memory (public member function)
π·οΈ Category π·οΈ
Noindexed pages
this iconic page comes from source/version http://cppreference.com and is dated 2024.06.10 β mwah π
π¦ 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