Support Class Library
A set of tools providing classes and utility
Public Member Functions | List of all members
scl::async::with_traits< Resource > Struct Template Reference

Traits for use with the scl::async::with function. More...

#include "with_traits.h"

Public Member Functions

template<class F >
auto operator() (Resource &resource, F &&delegate) -> scl::tools::meta ::return_t< F >
 Invoke a delegate using the wrapper. More...
 

Detailed Description

template<class Resource>
struct scl::async::with_traits< Resource >

Traits for use with the scl::async::with function.

Template Parameters
Resourcebeing the type of the value passed to scl::async::with

Definition at line 15 of file with_traits.h.

Member Function Documentation

◆ operator()()

template<class Resource>
template<class F >
auto scl::async::with_traits< Resource >::operator() ( Resource &  resource,
F &&  delegate 
) -> scl::tools::meta ::return_t<F>
inline

Invoke a delegate using the wrapper.

Template Parameters
Fbeing the type of the delegate
Parameters
resourcebeing the resource to use
delegatebeing the delegate to which the value will be passed

Definition at line 23 of file with_traits.h.


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