AV
Size: a a a
AV
DK
AV
AV
AP
MM
F&& f
ведь пишут std::invoke(std::forward<F>(f))
(акцент на forward), чтобы вызвался нужный operator ()
, тут практически тоже самоеAV
AV
MM
R Run(Args... args) && {
// Move the callback instance into a local variable before the invocation,
// that ensures the internal state is cleared after the invocation.
// It's not safe to touch |this| after the invocation, since running the
// bound function may destroy |this|.
OnceCallback cb = std::move(*this);
PolymorphicInvoke f =
reinterpret_cast<PolymorphicInvoke>(cb.polymorphic_invoke());
return f(cb.bind_state_.get(), std::forward<Args>(args)...);
}
MM
MM
AV
AV
AV
AK
AV
FO
AK
AV
AK