Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
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 ( T  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.

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

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