System::Func< T > Class Template Reference

Inherits System::Detail::FuncArgsParser< std::tuple< T... >, std::tuple<> >.

Public Member Functions

template<typename Arg >
 Func (const Arg &arg)

Detailed Description

template<class ... T>
class System::Func< T >

Function delegate. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Constructor & Destructor Documentation

◆ Func()

template<class ... T>
template<typename Arg >
System::Func< T >::Func ( const Arg &  arg)

Initializes function delegate with a function reference.

Template Parameters
ArgShould be proper specialization of std::function; we don't have valid typename at this point, so use a template instead.
argFunction initializer.