std::scoped...r_allocator(3)
π NAME π
std::scoped_allocator_adaptor::outer_allocator β std::scoped_allocator_adaptor::outer_allocator
okay so bestie, this is the std::scoped...r_allocator(3) page from the C++ Standard Libary manual, and itβs all about std::scoped_allocator_adaptor::outer_allocator. The NAME line really does say the same thing twice β iconic, honestly. π
β¨ Synopsis β¨
Hereβs the exact synopsis, no cap:
Defined in header <scoped_allocator>
outer_allocator_type& outer_allocator() noexcept; (1)
(since C++11)
const outer_allocator_type& outer_allocator() const noexcept; (2)
(since C++11)
It obtains a reference to the outer allocator used to declare this class. The two overloads are giving matching-set energy:
- Returns
static_cast<OuterAlloc&>(*this). - Returns
static_cast<const OuterAlloc&>(*this).
π Parameters π
(none) β literally zero parameters, bestie. Clean, simple, slay. β¨
π¦ Return value π¦
A reference to OuterAlloc. Thatβs the whole vibe. π«Ά
π See also π
inner_allocatorβ obtains aninner_allocatorreference (public member function).
π cute sign-off: source/versionhttp://cppreference.com, date2024.06.10, pagestd::scoped...r_allocator(3). Bye bestie, go slay your allocators! π
π¦ 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