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)
 
 Func ()
 Default constructor. More...
 

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() [1/2]

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

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.
Parameters
argFunction initializer.

◆ Func() [2/2]

template<class ... T>
System::Func< T >::Func ( )
inline

Default constructor.