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>
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
Name |
Description |
args |
Arguments forwarded to the constructor of |
tag |
A tag that selects this overload. |
Created with MrDocs