D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::detail::when_any::arg_helper_s< T > Struct Template Reference

Type trait helper to obtain the actual type that will be used by a when_any when a type is passed as a parameter. More...

#include "when_any.h"

Public Types

using type = T
 Raw type of the awaitable. More...
 

Static Public Member Functions

static decltype(auto) get (auto &&v)
 Helper static method to get the awaitable from a variable. More...
 

Detailed Description

template<typename T>
struct dpp::detail::when_any::arg_helper_s< T >

Type trait helper to obtain the actual type that will be used by a when_any when a type is passed as a parameter.

May specialize for certain types for specific behavior, e.g. for an event_router, store the awaitable directly

Member Typedef Documentation

◆ type

template<typename T >
using dpp::detail::when_any::arg_helper_s< T >::type = T

Raw type of the awaitable.

Member Function Documentation

◆ get()

template<typename T >
static decltype(auto) dpp::detail::when_any::arg_helper_s< T >::get ( auto &&  v)
inlinestatic

Helper static method to get the awaitable from a variable.


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