|
VLink 2.0.0
A high-performance communication middleware
|
Custom deleter for RAII handles returned by get() and get_shared().
更多...
#include <object_pool.h>
Public 成员函数 | |
| void | operator() (T *ptr) const noexcept |
Returns ptr to the pool, or deletes it if the pool is gone. | |
Public 属性 | |
| std::weak_ptr< ObjectPool< T > > | weak_pool |
| Non-owning reference to the parent pool. | |
Custom deleter for RAII handles returned by get() and get_shared().
Holds a weak_ptr to the parent pool. On destruction of the RAII handle, operator() is called:
release().delete.
|
inlinenoexcept |
Returns ptr to the pool, or deletes it if the pool is gone.
| ptr | Raw pointer to the object being released. Ignored if nullptr. |
| std::weak_ptr<ObjectPool<T> > vlink::ObjectPool< T >::PoolDeleter::weak_pool |
Non-owning reference to the parent pool.