ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation::memory::slub::slab_ptr< T > Class Template Referenceexport

Move-only RAII owner of a slab-allocated T. More...

Public Member Functions

auto get () const noexcept -> T *
 operator bool () const noexcept
auto operator* () const noexcept -> T &
auto operator-> () const noexcept -> T *
auto operator= (const slab_ptr &) noexcept=delete
auto operator= (slab_ptr &&o) noexcept -> slab_ptr &
auto release () noexcept -> T *
 Release ownership without destroying the object.
auto reset () noexcept -> void
 Destroy the object and free the slab slot immediately.
 slab_ptr (const slab_ptr &)=delete
 slab_ptr (slab_ptr &&o) noexcept
 slab_ptr (T *obj, kmem_cache *cache) noexcept
 Adopt an existing slab-allocated T.

Detailed Description

template<typename T>
class zxfoundation::memory::slub::slab_ptr< T >

Move-only RAII owner of a slab-allocated T.


The documentation for this class was generated from the following file:
  • zxfoundation/memory/slub.zcomponent/typed.cxxm