All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::utils::assignable_functor< Functor > Struct Template Reference

Wrapper around a functor which adds assigmnent operator as well as default constructor. Note, this struct might be dangerous. Using this struct correctly requires the underlying functor to live at least as long as this wrapper. More...

#include <functors.hpp>

Public Member Functions

 assignable_functor (Functor const &f)
 constructor More...
 
assignable_functoroperator= (Functor &f)
 assign operator More...
 
template<typename... Args>
auto operator() (Args &&...args) const -> decltype(std::declval< Functor >()(std::forward< Args >(args)...))
 operator() More...
 

Detailed Description

template<typename Functor>
struct paal::utils::assignable_functor< Functor >

Wrapper around a functor which adds assigmnent operator as well as default constructor. Note, this struct might be dangerous. Using this struct correctly requires the underlying functor to live at least as long as this wrapper.

Template Parameters
Functor

Definition at line 377 of file functors.hpp.

Constructor & Destructor Documentation

template<typename Functor >
paal::utils::assignable_functor< Functor >::assignable_functor ( Functor const &  f)
inline

constructor

Parameters
f

Definition at line 383 of file functors.hpp.

Member Function Documentation

template<typename Functor >
template<typename... Args>
auto paal::utils::assignable_functor< Functor >::operator() ( Args &&...  args) const -> decltype( std::declval<Functor>()(std::forward<Args>(args)...))
inline

operator()

Template Parameters
Args
Returns

Definition at line 403 of file functors.hpp.

template<typename Functor >
assignable_functor& paal::utils::assignable_functor< Functor >::operator= ( Functor &  f)
inline

assign operator

Parameters
f
Returns

Definition at line 393 of file functors.hpp.


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