PrevUpHomeNext

Validations::current

Iterate current validations.

Synopsis
template<
    class Pre,
    class F>
void
current(
    ScopedLock const& lock,
    Pre&& pre,
    F&& f);
Description

Iterate current validations, flushing any which are stale.

Parameters

Name

Description

lock

Existing lock of mutex_

pre

Invokable with signature (std::size_t) called prior to looping.

f

Invokable with signature (NodeKey const &, |6|Validations const &) for each current validation.

Remarks

The invokable pre is called prior to checking for staleness and reflects an upper-bound on the number of calls to f. @warning The invokablef` is expected to be a simple transformation of its arguments and will be called with mutex_ under lock.


PrevUpHomeNext