Constructors
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...
| Name | Description |
|---|---|
| cond | Pointer to the boolean to read. |
| obj | The functor to evaluate. |
| func | The predicate function to evaluate. |
| arg | The argument passed to func. |
| object | The object on which to invoke the method. |
| method | The member function to evaluate. |