emlabcpp
modern opinionated embedded C++ library
emlabcpp::coro::owning_coroutine_handle< PromiseType > Class Template Reference

#include <owning_coroutine_handle.h>

Public Types

using promise_type = PromiseType
 

Public Member Functions

 owning_coroutine_handle ()=default
 
 owning_coroutine_handle (std::coroutine_handle< promise_type > h)
 
 owning_coroutine_handle (owning_coroutine_handle const &)=delete
 
 owning_coroutine_handle (owning_coroutine_handle &&other) noexcept
 
owning_coroutine_handleoperator= (owning_coroutine_handle const &)=delete
 
owning_coroutine_handleoperator= (owning_coroutine_handle &&other) noexcept
 
void operator() () const
 
constexpr operator bool () const
 
constexpr bool done () const
 
constexpr void * address () const
 
constexpr promise_typepromise ()
 
constexpr promise_type const & promise () const
 
 ~owning_coroutine_handle ()
 

Member Typedef Documentation

◆ promise_type

template<typename PromiseType >
using emlabcpp::coro::owning_coroutine_handle< PromiseType >::promise_type = PromiseType

Constructor & Destructor Documentation

◆ owning_coroutine_handle() [1/4]

template<typename PromiseType >
emlabcpp::coro::owning_coroutine_handle< PromiseType >::owning_coroutine_handle ( )
default

◆ owning_coroutine_handle() [2/4]

template<typename PromiseType >
emlabcpp::coro::owning_coroutine_handle< PromiseType >::owning_coroutine_handle ( std::coroutine_handle< promise_type h)
inlineexplicit

◆ owning_coroutine_handle() [3/4]

template<typename PromiseType >
emlabcpp::coro::owning_coroutine_handle< PromiseType >::owning_coroutine_handle ( owning_coroutine_handle< PromiseType > const &  )
delete

◆ owning_coroutine_handle() [4/4]

template<typename PromiseType >
emlabcpp::coro::owning_coroutine_handle< PromiseType >::owning_coroutine_handle ( owning_coroutine_handle< PromiseType > &&  other)
inlinenoexcept

◆ ~owning_coroutine_handle()

template<typename PromiseType >
emlabcpp::coro::owning_coroutine_handle< PromiseType >::~owning_coroutine_handle ( )
inline

Member Function Documentation

◆ address()

template<typename PromiseType >
constexpr void* emlabcpp::coro::owning_coroutine_handle< PromiseType >::address ( ) const
inlineconstexpr

◆ done()

template<typename PromiseType >
constexpr bool emlabcpp::coro::owning_coroutine_handle< PromiseType >::done ( ) const
inlineconstexpr

◆ operator bool()

template<typename PromiseType >
constexpr emlabcpp::coro::owning_coroutine_handle< PromiseType >::operator bool ( ) const
inlineexplicitconstexpr

◆ operator()()

template<typename PromiseType >
void emlabcpp::coro::owning_coroutine_handle< PromiseType >::operator() ( ) const
inline

◆ operator=() [1/2]

template<typename PromiseType >
owning_coroutine_handle& emlabcpp::coro::owning_coroutine_handle< PromiseType >::operator= ( owning_coroutine_handle< PromiseType > &&  other)
inlinenoexcept

References emlabcpp::swap().

◆ operator=() [2/2]

template<typename PromiseType >
owning_coroutine_handle& emlabcpp::coro::owning_coroutine_handle< PromiseType >::operator= ( owning_coroutine_handle< PromiseType > const &  )
delete

◆ promise() [1/2]

template<typename PromiseType >
constexpr promise_type& emlabcpp::coro::owning_coroutine_handle< PromiseType >::promise ( )
inlineconstexpr

◆ promise() [2/2]

template<typename PromiseType >
constexpr promise_type const& emlabcpp::coro::owning_coroutine_handle< PromiseType >::promise ( ) const
inlineconstexpr

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