Seastar
High performance C++ framework for concurrent servers
Public Types | Static Public Member Functions | List of all members
seastar::futurize< T > Struct Template Reference

Detailed Description

template<typename T>
struct seastar::futurize< T >

Converts a type to a future type, if it isn't already.

Returns
Result in member type 'type'.

Public Types

using base = internal::futurize_base< T >
 
using type = typename base::type
 
using promise_type = typename base::promise_type
 
using promise_base_with_type = typename base::promise_base_with_type
 
using value_type = typename type::value_type
 The value tuple type associated with type.
 
using tuple_type = typename type::tuple_type
 

Static Public Member Functions

template<typename Func , typename... FuncArgs>
static type apply (Func &&func, std::tuple< FuncArgs... > &&args) noexcept
 
template<typename Func , typename... FuncArgs>
static type invoke (Func &&func, FuncArgs &&... args) noexcept
 
template<typename Func >
static type invoke (Func &&func, internal::monostate) noexcept
 
template<typename Func , typename... FuncArgs>
static type apply (Func &&func, FuncArgs &&... args) noexcept
 Deprecated alias of invoke.
 
static type current_exception_as_future () noexcept
 
static type from_tuple (tuple_type &&value)
 Convert the tuple representation into a future.
 
static type from_tuple (const tuple_type &value)
 Convert the tuple representation into a future.
 
static type from_tuple (value_type &&value)
 Convert the tuple representation into a future.
 
static type from_tuple (const value_type &value)
 Convert the tuple representation into a future.
 

Member Function Documentation

◆ apply()

template<typename T >
template<typename Func , typename... FuncArgs>
static type seastar::futurize< T >::apply ( Func &&  func,
std::tuple< FuncArgs... > &&  args 
)
inlinestaticnoexcept

Apply a function to an argument list (expressed as a tuple) and return the result, as a future (if it wasn't already).

◆ invoke()

template<typename T >
template<typename Func , typename... FuncArgs>
static type seastar::futurize< T >::invoke ( Func &&  func,
FuncArgs &&...  args 
)
inlinestaticnoexcept

Invoke a function to an argument list and return the result, as a future (if it wasn't already).


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