Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
pw::async2::FreePendableWrapper< Func > Class Template Reference

Public Types

using FuncType = decltype(Func)
 
using Traits = internal::PendableTraits< FuncType >
 
using Output = typename Traits::Output
 
using Arguments = typename Traits::Arguments
 

Public Member Functions

 FreePendableWrapper (const FreePendableWrapper &)=delete
 
FreePendableWrapperoperator= (const FreePendableWrapper &)=delete
 
 FreePendableWrapper (FreePendableWrapper &&)=default
 
FreePendableWrapperoperator= (FreePendableWrapper &&)=default
 
Poll< Output > Pend (Context &cx)
 
constexpr bool completed () const
 

Friends

template<auto FreeFuncParam, typename TraitsParam , typename EnableIfParam , typename... ArgsParam>
constexpr FreePendableWrapper< FreeFuncParam > PendableFor (ArgsParam &&... args)
 

Detailed Description

template<auto Func>
class pw::async2::FreePendableWrapper< Func >

Wraps a pendable free function in an object which has a single Pend method, allowing it to be used more broadly.


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