__gnu_cxx::free_list(3cxx)

πŸ’– NAME πŸ’–

okay so bestie, this is the __gnu_cxx::free_list(3cxx) page β€” and it is literally the free list class for managing chunks of memory to be given to and returned by the bitmap_allocator. no cap 🫢

🌸 SYNOPSIS 🌸

#include <bitmap_allocator.h>

Inherited by __gnu_cxx::bitmap_allocator< _Tp > [private].

πŸŽ€ Public Types πŸŽ€

  • typedef __mutex __mutex_type β€” the mutex type it rolls with, periodt.
  • typedef vector_type::iterator iterator β€” iterator type, coming straight from vector_type.
  • typedef std::size_t * value_type β€” the value type is std::size_t *, a pointer to std::size_t, slay.
  • typedef __detail::__mini_vector< value_type > vector_type β€” the vector type is __detail::__mini_vector< value_type >, iconic.

πŸ’… Public Member Functions πŸ’…

  • void _M_clear () β€” this function just clears the internal Free List, and gives back all the memory to the OS. clean sweep vibes πŸ’…
  • std::size_t * _M_get (std::size_t __sz) β€” this function gets a block of memory of the specified size from the free list.
  • void _M_insert (std::size_t *__addr) throw () β€” this function returns the block of memory to the internal free list.

πŸ¦‹ Detailed Description πŸ¦‹

the free list class for managing chunks of memory to be given to and returned by the bitmap_allocator. that’s the whole main character energy of this class, fr fr.

πŸ“ Member Function Documentation πŸ“

πŸ’– void __gnu_cxx::free_list::_M_clear () πŸ’–

this function just clears the internal Free List, and gives back all the memory to the OS. literally releasing it back into the wild 🌈

πŸ’– std::size_t * __gnu_cxx::free_list::_M_get (std::size_t __sz) πŸ’–

this function gets a block of memory of the specified size from the free list.

Parameters

  • __sz β€” the size in bytes of the memory required.

Returns

a pointer to the new memory block of size at least equal to that requested. yes bestie, at least that size πŸ‘‘

πŸ’– void __gnu_cxx::free_list::_M_insert (std::size_t * __addr) [inline] πŸ’–

this function returns the block of memory to the internal free list.

Parameters

  • __addr β€” the pointer to the memory block that was given by a call to the _M_get function.

Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_M_deallocate_single_object().

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


that’s the whole page, brought to you by libstdc++ and __gnu_cxx::free_list(3cxx) β€” mwah πŸ’‹βœ¨