Flutter Engine
fml::internal::CopyableLambda< T > Class Template Reference

#include <make_copyable.h>

Public Member Functions

 CopyableLambda (T func)
 
template<typename... ArgType>
auto operator() (ArgType &&... args) const
 

Detailed Description

template<typename T>
class fml::internal::CopyableLambda< T >

Definition at line 17 of file make_copyable.h.

Constructor & Destructor Documentation

◆ CopyableLambda()

template<typename T >
fml::internal::CopyableLambda< T >::CopyableLambda ( func)
inlineexplicit

Definition at line 19 of file make_copyable.h.

20  : impl_(MakeRefCounted<Impl>(std::move(func))) {}

Member Function Documentation

◆ operator()()

template<typename T >
template<typename... ArgType>
auto fml::internal::CopyableLambda< T >::operator() ( ArgType &&...  args) const
inline

Definition at line 23 of file make_copyable.h.

References args.

23  {
24  return impl_->func_(std::forward<ArgType>(args)...);
25  }
G_BEGIN_DECLS FlValue * args

The documentation for this class was generated from the following file: