Mark *this
for reclamation, using the supplied deleter instead of the stored deleter.
template<typename Deleter2> void retire(Deleter2 && supplied_deleter);
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.
Any exception thrown by the assignment to stored_deleter
.
#include <jss/rcu.hpp>