D++ (DPP)
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. May specialize for certain types for specific behavior, e.g. for an event_router, store the awaitable directly. More...

Public Types

using type = T
 

Static Public Member Functions

static decltype(auto) get (auto &&v)
 

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

D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0