[#absl-AnyInvocable-2constructor-02] = xref:absl.adoc[absl]::xref:absl/AnyInvocable.adoc[AnyInvocable]::AnyInvocable :relfileprefix: ../../ :mrdocs: Constructs an `AnyInvocable` that holds an invocable object of type `T`, which is constructed in‐place from the given arguments. == Synopsis Declared in `<absl/functional/any_invocable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class... Args> requires internal_any_invocable::CanEmplace<Sig, T, Args...>::value explicit AnyInvocable( std::in_place_type_t<T> tag, Args&&... args); ---- == Description Example: AnyInvocable<int(int)> func( std::in_place_type<PossiblyImmovableType>, arg1, arg2); == Parameters [cols="1,4"] |=== | Name| Description | *args* | Arguments forwarded to the constructor of `T`. | *tag* | A tag that selects this overload. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#