fsm
Public Member Functions | Static Public Attributes | List of all members
escad::contexts< T > Struct Template Reference

A set of references to different context types. More...

#include <contexts.h>

Public Member Functions

 contexts (T &... ctxs) noexcept
 Capture different Context types as references.
 
template<class U >
auto & get () noexcept
 Get context by type.
 
template<class U >
auto const & get () const noexcept
 Get context by type.
 

Static Public Attributes

template<class U >
static auto constexpr has = mpl::type_list_contains_v<mpl::type_list<T...>, U>
 

Detailed Description

template<class... T>
struct escad::contexts< T >

A set of references to different context types.

If there are multiple contexts used by different states this set will be used to provide a proper context to a state based on its constructor argument type.


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