[#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&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
Condition(
    bool(* func)(T*),
    T* arg);
----

== Description

To use a lambda, prepend it with unary plus to convert it into a function pointer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The predicate function to evaluate&period;
| *arg*
| The argument passed to `func`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
