jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Classes | Public Types | Static Public Member Functions | List of all members
jau::func::capval_target_t< R, I, A > Class Template Referencefinal

func::capval_target_t implementation for functions using a copy of a captured value, identifiable as func::target_type::capval via jau::function<R(A...)>::type(). More...

#include <functional.hpp>

Collaboration diagram for jau::func::capval_target_t< R, I, A >:

Public Types

typedef delegate_t< R, A... > delegate_type
 

Static Public Member Functions

static delegate_type delegate (const I &data, R(*function)(I &, A...)) noexcept
 
static delegate_type delegate (I &&data, R(*function)(I &, A...)) noexcept
 

Detailed Description

template<typename R, typename I, typename... A>
class jau::func::capval_target_t< R, I, A >

func::capval_target_t implementation for functions using a copy of a captured value, identifiable as func::target_type::capval via jau::function<R(A...)>::type().

Template Parameters
Rfunction return type
Itypename holding the captured data used by the function
Afunction arguments
See also
Function Overview

Definition at line 1056 of file functional.hpp.

Member Typedef Documentation

◆ delegate_type

template<typename R , typename I , typename... A>
typedef delegate_t<R, A...> jau::func::capval_target_t< R, I, A >::delegate_type

Definition at line 1058 of file functional.hpp.

Member Function Documentation

◆ delegate() [1/2]

template<typename R , typename I , typename... A>
static delegate_type jau::func::capval_target_t< R, I, A >::delegate ( const I &  data,
R(*)(I &, A...)  function 
)
inlinestaticnoexcept

Definition at line 1088 of file functional.hpp.

Here is the caller graph for this function:

◆ delegate() [2/2]

template<typename R , typename I , typename... A>
static delegate_type jau::func::capval_target_t< R, I, A >::delegate ( I &&  data,
R(*)(I &, A...)  function 
)
inlinestaticnoexcept

Definition at line 1092 of file functional.hpp.


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