absl::Condition::Condition

Constructors

Synopses

Declared in <absl/synchronization/mutex.h>

Constructs a Condition that returns the value of *cond.

explicit
Condition(bool const* cond);
» more...

Constructs a Condition from a functor exposing bool operator() const.

template<typename T>
requires synchronization_internal::HasConstMemberCallOperator<T>::value
explicit
Condition(T const* obj);
» more...

Constructs a Condition from a functor that does not match the bool operator()() const signature.

template<typename T>
requires !synchronization_internal::HasConstMemberCallOperator<T>::value &&
          sizeof(static_cast<bool (*)(const T&)>(&T::operator())) != 0
explicit
Condition(T const* obj);
» more...

Constructs a Condition that returns the result of (*func)(arg).

Condition(
    bool(* func)(void*),
    void* arg);
» more...

Constructs a Condition that evaluates object->method().

template<typename T>
Condition(
    T* object,
    bool(T::* method)());
» more...

Constructs a Condition that evaluates a const member function.

template<typename T>
Condition(
    T const* object,
    bool const(T::* method)());
» more...

Constructs a Condition from a typed function pointer and argument.

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

Constructs a Condition allowing arg to be implicitly convertible to the function parameter type.

template<
    typename T,
    typename = void>
Condition(
    bool(* func)(T*),
    T* arg);
» more...

Parameters

NameDescription
condPointer to the boolean to read.
objThe functor to evaluate.
funcThe predicate function to evaluate.
argThe argument passed to func.
objectThe object on which to invoke the method.
methodThe member function to evaluate.