std::experi...:do_allocate(3)
β¨ NAME β¨
okay so bestie π this page is from the C++ Standard Libary manual β yes, thatβs literally how the header spells it, βLibaryβ, and weβre keeping that iconique typo energy. The main character is std::experimental::pmr::unsynchronized_pool_resource::do_allocate. The NAME line is lowkey just the same name twice with a dash: std::experimental::pmr::unsynchronized_pool_resource::do_allocate - std::experimental::pmr::unsynchronized_pool_resource::do_allocate. periodt, no notes. π
π¦ Synopsis π¦
hereβs the signature, character-for-character:
virtual void* do_allocate( std::size_t bytes, std::size_t alignment );
and yes bestie, this one is from the library fundamentals TS β keep that in mind. π«Ά
Allocates storage. β¨
If the pool selected for a block of size bytes is unable to satisfy the request from its internal data structures, it calls allocate() on the upstream memory resource to obtain memory.
If the size requested is larger than what the largest pool can handle, memory is allocated by calling allocate() on the upstream memory resource.
π Return value π
A pointer to allocated storage of at least bytes bytes in size, aligned to the specified alignment if such alignment is supported, and to alignof(std::max_align_t) otherwise. slay. πΈ
π₯ Exceptions π₯
Throws nothing unless calling allocate() on the upstream memory resource throws. thatβs the whole tea. π
π See also π
allocateβ allocates memory; public member function ofstd::experimental::pmr::memory_resourcedo_allocate[virtual]β allocates memory; virtual protected member function ofstd::experimental::pmr::memory_resource
π Category π
- Noindexed pages
big slay energy from the cppreference.com girlies π source: http://cppreference.com Β· version/date: 2024.06.10 Β· footer: std::experi...:do_allocate(3) β and thatβs the whole page, bestie, you ate. π«Άβ¨
π¦ 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