rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::lambda_holder_t< M, F > Struct Template Reference

Helper struct which holds lambda function for processing particular message types. More...

#include <handler.h>

Public Types

using message_t = M
 alias type for message type for lambda
 
using payload_t = typename M::payload_t
 alias type for message payload
 

Public Member Functions

 lambda_holder_t (F &&fn_)
 constructs lambda by forwarding arguments
 

Public Attributes

fn
 lambda function itself
 

Detailed Description

template<typename M, typename F>
struct rotor::lambda_holder_t< M, F >

Helper struct which holds lambda function for processing particular message types.

The whole purpose of the structure is to allow to deduce the lambda argument, i.e. message type.


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