Constructs an AnyInvocable that holds an invocable object of type T, which is constructed in-place from the given arguments.
Declared in <absl/functional/any_invocable.h>
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);
Example:
AnyInvocable<int(int)> func( std::in_place_type<PossiblyImmovableType>, arg1, arg2);
| Name | Description |
|---|---|
| args | Arguments forwarded to the constructor of T. |
| tag | A tag that selects this overload. |