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. | |
Move-only RAII owner of a slab-allocated T.