std::alloca...::deallocate(3)

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

okay so this is the std::alloca...::deallocate(3) page from the C++ Standard Libary manual, and we're about to make deallocation make sense, bestie πŸ’–

✨ NAME ✨

std::allocator_traits::deallocate β€” std::allocator_traits::deallocate periodt πŸ’…

🌸 Synopsis 🌸

Defined in header <memory> ✨

static void deallocate( Alloc& a, pointer p, size_type n );

(since C++11) (until C++20)

static constexpr void deallocate( Alloc& a, pointer p, size_type n );

(since C++20)

Uses the allocator a to deallocate the storage referenced by p, by calling a.deallocate(p, n) 🫢

πŸ’– Parameters πŸ’–

  • a β€” allocator to use
  • p β€” pointer to the previously allocated storage
  • n β€” the number of objects the storage was allocated for

⭐ Return value ⭐

(none) β€” literally nothing, bestie 😌

πŸŽ€ Example πŸŽ€

This section is incomplete 😭

Reason: no example

πŸ¦‹ See also πŸ¦‹

  • allocate β€” allocates uninitialized storage using the allocator; [static] (public static member function)
  • deallocate β€” deallocates storage (public member function of std::allocator<T>)

🌈 Category 🌈

  • Todo no example

byeeee 🫢 β€” this page is from http://cppreference.com, dated 2024.06.10, and the footer signs it std::alloca...::deallocate(3) πŸ’…

πŸ“¦ where this page comes from