5#ifndef FLUTTER_FML_MAKE_COPYABLE_H_
6#define FLUTTER_FML_MAKE_COPYABLE_H_
10#include "flutter/fml/memory/ref_counted.h"
11#include "flutter/fml/memory/ref_ptr.h"
22 template <
typename... ArgType>
24 return impl_->func_(std::forward<ArgType>(
args)...);
30 explicit Impl(
T func) : func_(
std::move(func)) {}
auto operator()(ArgType &&... args) const
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
RefPtr< T > MakeRefCounted(Args &&... args)
internal::CopyableLambda< T > MakeCopyable(T lambda)