std::experi...:do_allocate(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ 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 of std::experimental::pmr::memory_resource
  • do_allocate [virtual] β€” allocates memory; virtual protected member function of std::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