std::scoped...or::max_size(3)

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

✨ NAME ✨

std::scoped_allocator_adaptor::max_size β€” okay bestie, this is the std::scoped_allocator_adaptor::max_size(3) page from the C++ Standard Libary πŸ’…βœ¨


πŸ¦‹ Synopsis πŸ¦‹

Defined in header <scoped_allocator> πŸŽ€

size_type max_size() const;           (since C++11)

So what does it do? It reports the maximum allocation size supported by the outer allocator, by calling std::allocator_traits<OuterAlloc>::max_size(outer_allocator()). That's the whole vibe, no cap πŸ’–

🌸 Parameters 🌸

None β€” literally (none), bestie 🫢

πŸŽ€ Return value πŸŽ€

The maximum allocation size for OuterAlloc. Periodt πŸ’…

πŸ‘‘ See also πŸ‘‘

  • max_size β€” returns the largest supported allocation size (until C++20) (public member function of std::allocator<T>) πŸ¦‹
  • max_size β€” returns the maximum object size supported by the allocator [static] (public static member function of std::allocator_traits<Alloc>) ⭐

source: cppreference.com Β· date: 2024.06.10 Β· bye bestie, love u πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from