libhatchet
Loading...
Searching...
No Matches
hxfree_list< T, capacity_ >::deleter_t Class Reference

#include <hxfree_list.hpp>

Public Member Functions

 deleter_t (hxfree_list &owner_) noexcept
void operator() (T *p_) noexcept
 operator bool (void) const

Detailed Description

template<hxfree_list_concept_ T, hxsize_t capacity_ = hxallocator_dynamic_capacity>
class hxfree_list< T, capacity_ >::deleter_t

deleter_t - A callable deleter that releases a T back to this hxfree_list.

Constructor & Destructor Documentation

◆ deleter_t()

template<hxfree_list_concept_ T, hxsize_t capacity_ = hxallocator_dynamic_capacity>
hxfree_list< T, capacity_ >::deleter_t::deleter_t ( hxfree_list & owner_)
inlineexplicitnoexcept

Constructs a deleter associated with owner.

Member Function Documentation

◆ operator bool()

template<hxfree_list_concept_ T, hxsize_t capacity_ = hxallocator_dynamic_capacity>
hxfree_list< T, capacity_ >::deleter_t::operator bool ( void ) const
inline

Always returns true, indicating the deleter is valid.

◆ operator()()

template<hxfree_list_concept_ T, hxsize_t capacity_ = hxallocator_dynamic_capacity>
void hxfree_list< T, capacity_ >::deleter_t::operator() ( T * p_)
inlinenoexcept

Destructs *p and returns its slot to the owning hxfree_list.

WARNING: Made non-const to indicate deletion is not thread-safe.


The documentation for this class was generated from the following file: