std::experi...:do_allocate(3)
π NAME π
std::experimental::pmr::synchronized_pool_resource::do_allocate β yes bestie, that is the entire name, and we are living for it. This page is from the C++ Standard Libary manual, page std::experi...:do_allocate(3). No cap, we're doing this. π«Ά
β¨ Synopsis β¨
virtual void* do_allocate( std::size_t bytes, std::size_t alignment );
(library fundamentals TS) π¦
Okay so this one literally allocates storage. That's the whole vibe. 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. Periodt. π
If the size requested is larger than what the largest pool can handle, memory is allocated by calling allocate() on the upstream memory resource. No cap, it just goes upstream. π
πΈ 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. That's the tea. ββ¨
π Exceptions π
Throws nothing unless calling allocate() on the upstream memory resource throws. That's it, that's the exception section. π
π¦ See also π¦
allocateβ allocates memory; public member function ofstd::experimental::pmr::memory_resourcedo_allocateβ allocates memory;[virtual]virtual protected member function ofstd::experimental::pmr::memory_resource
π Category π
Noindexed pages
And that's the whole page, bestie! This cutie came from http://cppreference.com, dated 2024.06.10, and it's the std::experi...:do_allocate(3) page. Stay slay, stay aligned. π
β¨π
π¦ 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