Constructors
Synopses
Declared in <absl/synchronization/mutex.h>
Constructs a Condition that returns the value of *cond.
explicit
Condition(bool const* cond);
Constructs a Condition from a functor exposing bool operator() const.
template<typename T>
requires synchronization_internal::HasConstMemberCallOperator<T>::value
explicit
Condition(T const* obj);
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);
Constructs a Condition that returns the result of (*func)(arg).
Condition(
bool(* func)(void*),
void* arg);
Constructs a Condition that evaluates object‐>method().
template<typename T>
Condition(
T* object,
bool(T::* method)());
Constructs a Condition that evaluates a const member function.
template<typename T>
Condition(
T const* object,
bool const(T::* method)());
Constructs a Condition from a typed function pointer and argument.
template<typename T>
Condition(
bool(* func)(T*),
T* arg);
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);
Parameters
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 |
object |
The object on which to invoke the method. |
method |
The member function to evaluate. |
Created with MrDocs