4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
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

using result_type = Ret
 

Public Member Functions

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

Member Typedef Documentation

◆ result_type

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

Constructor & Destructor Documentation

◆ function() [1/2]

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

◆ function() [2/2]

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

Member Function Documentation

◆ operator()()

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