std::experi...or::allocate(3)
π¦ std::experi...or::allocate(3) β the allocate page, but make it cute π¦
okay so bestie, this is the std::experi...or::allocate(3) manual page from the C++ Standard Libary β yep, thatβs the header spelling, and Iβm leaving it exactly as it is, no cap. The actual star of the show is std::experimental::pmr::polymorphic_allocator::allocate, and sheβs literally the same name in the NAME section because thatβs how this page rolls. π
β¨ NAME β¨
std::experimental::pmr::polymorphic_allocator::allocate β thatβs the whole name, bestie. Itβs giving long-name main character energy, and yes, it appears again because NAME said so. π
π¦ Synopsis π¦
Hereβs the signature, copied exactly because we do not play with code:
T* allocate( std::size_t n ); (library fundamentals TS)
She allocates storage for n objects of type T using the underlying memory resource. Equivalent to:
return static_cast<T*>(this->resource()->allocate(n * sizeof(T), alignof(T)));.
That trailing period after the semicolon is part of the original line, okay? Keep it. π«Ά
π Parameters π
nβ the number of objects to allocate storage for. Thatβs the whole parameter tea. π
π Return value π
A pointer to the allocated storage. Periodt, thatβs the return value. π
π See also π
allocateβ allocates uninitialized storage using the allocator.[static](public static member function ofstd::allocator_traits<Alloc>). πdeallocateβ deallocates memory (public member function ofstd::experimental::pmr::memory_resource). π
π Category π
* Noindexed pagesβ the category, exactly as it appears. π
with love from http://cppreference.com, version 2024.06.10, and the manual name std::experi...or::allocate(3) β 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