Documentation Home

Mark *this for reclamation, using the supplied deleter instead of the stored deleter.

template<typename Deleter2>
void retire(Deleter2 && supplied_deleter);

Effects:

As-if stored_deleter = std::forward<Deleter2>(supplied_deleter); jss::rcu_retire(static_cast<Derived*>(this),std::ref(stored_deleter)), but does not require allocating internal storage.

Throws:

Any exception thrown by the assignment to stored_deleter.

Header

#include <jss/rcu.hpp>

See Also