template< class Pre, class F> void current( ScopedLock const& lock, Pre&& pre, F&& f);
Iterate current validations, flushing any which are stale.
Name |
Description |
---|---|
|
Existing lock of mutex_ |
|
Invokable with signature (std::size_t) called prior to looping. |
|
Invokable with signature (NodeKey const &, |6|Validations const &) for each current validation. |
The invokable pre
is called
prior to checking for staleness and reflects an upper-bound
on the number of calls to f. @warning
The invokable
f`
is expected to be a simple transformation of its arguments and will be
called with mutex_ under lock.