[#absl-Condition-2constructor-02] = xref:absl.adoc[absl]::xref:absl/Condition.adoc[Condition]::Condition :relfileprefix: ../../ :mrdocs: Constructs a `Condition` from a typed function pointer and argument. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *func* | The predicate function to evaluate. | *arg* | The argument passed to `func`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#