STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Friends
stapl::function< Signature > Class Template Reference

A general-purpose polymorphic function wrapper. More...

Public Member Functions

template<typename Function >
 function (Function f)
 
 function (function const &)=default
 
 function (function &&)=default
 
functionoperator= (function const &)=default
 
functionoperator= (function &&)=default
 

Friends

class typer_traits< function< Signature > >
 

Detailed Description

template<typename Signature>
class stapl::function< Signature >

A general-purpose polymorphic function wrapper.

Template Parameters
SignatureStored callable signature.

stapl::function is similar to std::function, as it can store and call any target. In addition, it has the necessary functions to allow packing/unpacking.

Warning
Any target stored in a stapl::function has to support some form of packing/unpacking.

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