std::function< Result(Arguments...)> Class Template Reference

Public Member Functions

 function () noexcept
 Creates an empty function. More...
 
 function (decltype(nullptr)) noexcept
 Creates an empty function. More...
 
template<typename Functor >
 function (Functor f)
 Creates a function targetting the provided Functor. More...
 
 function (function const &other)
 Copy constructor. More...
 
 function (function &&other)
 Move constructor. More...
 
 ~function ()
 Destructor. More...
 
functionoperator= (function const &other)
 Replaces the contents of this function with the contents of another. More...
 
functionoperator= (function &&other)
 Moves the contents of another function into this one. More...
 
 operator bool () const noexcept
 Allows conditional expressions to test if this function is empty. More...
 
void swap (function &other)
 Swaps the contents of this function with another. More...
 
Result operator() (Arguments... args) const
 Invokes the target of this function. More...
 
bool operator== (decltype(nullptr)) const noexcept
 
bool operator!= (decltype(nullptr)) const noexcept
 

Constructor & Destructor Documentation

◆ function() [1/5]

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::function ( )
noexcept

Creates an empty function.

◆ function() [2/5]

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::function ( decltype(nullptr)  )
noexcept

Creates an empty function.

◆ function() [3/5]

template<typename Result , typename... Arguments>
template<typename Functor >
std::function< Result(Arguments...)>::function ( Functor  f)

Creates a function targetting the provided Functor.

◆ function() [4/5]

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::function ( function< Result(Arguments...)> const &  other)

Copy constructor.

References StandardApplicationCommandIDs::copy.

◆ function() [5/5]

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::function ( function< Result(Arguments...)> &&  other)

Move constructor.

◆ ~function()

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::~function ( )

Destructor.

Member Function Documentation

◆ operator=() [1/2]

template<typename Result , typename... Arguments>
function& std::function< Result(Arguments...)>::operator= ( function< Result(Arguments...)> const &  other)

Replaces the contents of this function with the contents of another.

References StandardApplicationCommandIDs::copy.

◆ operator=() [2/2]

template<typename Result , typename... Arguments>
function& std::function< Result(Arguments...)>::operator= ( function< Result(Arguments...)> &&  other)

Moves the contents of another function into this one.

◆ operator bool()

template<typename Result , typename... Arguments>
std::function< Result(Arguments...)>::operator bool ( ) const
explicitnoexcept

Allows conditional expressions to test if this function is empty.

◆ swap()

template<typename Result , typename... Arguments>
void std::function< Result(Arguments...)>::swap ( function< Result(Arguments...)> &  other)

Swaps the contents of this function with another.

After this operation the two functions will be pointing at each other's targets.

◆ operator()()

template<typename Result , typename... Arguments>
Result std::function< Result(Arguments...)>::operator() ( Arguments...  args) const

Invokes the target of this function.

◆ operator==()

template<typename Result , typename... Arguments>
bool std::function< Result(Arguments...)>::operator== ( decltype(nullptr)  ) const
noexcept

◆ operator!=()

template<typename Result , typename... Arguments>
bool std::function< Result(Arguments...)>::operator!= ( decltype(nullptr)  ) const
noexcept

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