std::experi...c_allocator(3)
π std::experimental::pmr::polymorphic_allocator::polymorphic_allocator π
okay so bestie, you're in the C++ Standard Libary manual β yes, that's the manual name, typo and all, we don't make the rules β and this page is literally all about std::experimental::pmr::polymorphic_allocator::polymorphic_allocator. It's giving constructor main character energy and I'm obsessed. π«Άβ¨
πΈ NAME πΈ
std::experimental::pmr::polymorphic_allocator::polymorphic_allocator β that's the name, and then the page says it again: std::experimental::pmr::polymorphic_allocator::polymorphic_allocator. say it with your chest, bestie. π
β¨ Synopsis β¨
polymorphic_allocator() noexcept;
(1)
polymorphic_allocator( const polymorphic_allocator& other ) noexcept
= default; (2)
template< class U >
(3)
polymorphic_allocator( const polymorphic_allocator<U>& other )
noexcept;
polymorphic_allocator( memory_resource* r );
(4)
Constructs a new polymorphic_allocator. lowkey straightforward, highkey essential. π
- 1) Constructs a
polymorphic_allocatorusing the return value ofstd::experimental::pmr::get_default_resource()as the underlying memory resource. - 2, 3) Constructs a
polymorphic_allocatorusingother.resource()as the underlying memory resource. - 4) Constructs a
polymorphic_allocatorusingras the underlying memory resource. This constructor provides an implicit conversion frommemory_resource*.
π Parameters π
otherβ anotherpolymorphic_allocatorto copy from. copy from bestie, got it. π«Άrβ pointer to the memory resource to use. May not be null. π¨ no nulls allowed, periodt.
π Exceptions π
- 4) Throws nothing. ποΈ constructor 4 is literally unbothered.
π·οΈ Category: π·οΈ
Noindexed pages
mwah π β this page comes from http://cppreference.com, dated 2024.06.10. bye bestie, go construct something iconic. πβ¨
π¦ 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