TrinityCore
Loading...
Searching...
No Matches
Trinity::Asio::AsExpected< CompletionToken >::executor_with_default< InnerExecutor > Struct Template Reference

#include <ExpectedCompletionHandler.h>

+ Inheritance diagram for Trinity::Asio::AsExpected< CompletionToken >::executor_with_default< InnerExecutor >:

Public Types

typedef AsExpected default_completion_token_type
 Specify AsExpected as the default completion token type.
 

Public Member Functions

template<typename InnerExecutor1 >
 executor_with_default (InnerExecutor1 const &ex, std::enable_if_t< std::conditional_t< !std::is_same_v< InnerExecutor1, executor_with_default >, std::is_convertible< InnerExecutor1, InnerExecutor >, std::false_type >::value, int >=0) noexcept
 Construct the adapted executor from the inner executor type.
 

Detailed Description

template<typename CompletionToken>
template<typename InnerExecutor>
struct Trinity::Asio::AsExpected< CompletionToken >::executor_with_default< InnerExecutor >

Adapts an executor to add the AsExpected completion token as the default.

Definition at line 54 of file ExpectedCompletionHandler.h.

Member Typedef Documentation

◆ default_completion_token_type

template<typename CompletionToken >
template<typename InnerExecutor >
typedef AsExpected Trinity::Asio::AsExpected< CompletionToken >::executor_with_default< InnerExecutor >::default_completion_token_type

Specify AsExpected as the default completion token type.

Definition at line 57 of file ExpectedCompletionHandler.h.

Constructor & Destructor Documentation

◆ executor_with_default()

template<typename CompletionToken >
template<typename InnerExecutor >
template<typename InnerExecutor1 >
Trinity::Asio::AsExpected< CompletionToken >::executor_with_default< InnerExecutor >::executor_with_default ( InnerExecutor1 const &  ex,
std::enable_if_t< std::conditional_t< !std::is_same_v< InnerExecutor1, executor_with_default< InnerExecutor > >, std::is_convertible< InnerExecutor1, InnerExecutor >, std::false_type >::value, int >  = 0 
)
inlinenoexcept

Construct the adapted executor from the inner executor type.

Definition at line 61 of file ExpectedCompletionHandler.h.


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