absl::Condition::Condition

Constructs a Condition from a typed function pointer and argument.

Synopsis

Declared in <absl/synchronization/mutex.h>

template<typename T>
Condition(
    bool(* func)(T*),
    T* arg);

Description

To use a lambda, prepend it with unary plus to convert it into a function pointer.

Parameters

NameDescription
funcThe predicate function to evaluate.
argThe argument passed to func.