3.0.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
fcppt::function< Ret(Args...)> Class Template Reference

Detailed Description

template<typename Ret, typename... Args>
class fcppt::function< Ret(Args...)>

A function object that cannot be null.

This class is like std::function, except it cannot be null and its constructor is explicit.

Public Types

typedef Ret result_type
 

Public Member Functions

template<typename F >
 function (F)
 
template<typename F , typename Alloc >
 function (std::allocator_arg_t, Alloc const &, F)
 
 function (function const &)
 
 function (function &&)
 
functionoperator= (function const &)
 
functionoperator= (function &&)
 
 ~function ()
 
Ret operator() (Args...) const
 

Member Typedef Documentation

◆ result_type

template<typename Ret , typename... Args>
typedef Ret fcppt::function< Ret(Args...)>::result_type

Constructor & Destructor Documentation

◆ function() [1/4]

template<typename Ret , typename... Args>
template<typename F >
fcppt::function< Ret(Args...)>::function ( )
explicit

◆ function() [2/4]

template<typename Ret , typename... Args>
template<typename F , typename Alloc >
fcppt::function< Ret(Args...)>::function ( std::allocator_arg_t  ,
Alloc const &  ,
 
)
explicit

◆ function() [3/4]

template<typename Ret , typename... Args>
fcppt::function< Ret(Args...)>::function ( function< Ret(Args...)> const &  )

◆ function() [4/4]

template<typename Ret , typename... Args>
fcppt::function< Ret(Args...)>::function ( function< Ret(Args...)> &&  )

◆ ~function()

template<typename Ret , typename... Args>
fcppt::function< Ret(Args...)>::~function ( )

Member Function Documentation

◆ operator()()

template<typename Ret , typename... Args>
Ret fcppt::function< Ret(Args...)>::operator() ( Args...  ) const

◆ operator=() [1/2]

template<typename Ret , typename... Args>
function& fcppt::function< Ret(Args...)>::operator= ( function< Ret(Args...)> const &  )

◆ operator=() [2/2]

template<typename Ret , typename... Args>
function& fcppt::function< Ret(Args...)>::operator= ( function< Ret(Args...)> &&  )