#include <if.h>
Classes | |
| struct | CallPoll |
| struct | Evaluating |
Public Member Functions | |
| If (C condition, T if_true, F if_false) | |
| Poll< Result > | operator() () |
Private Types | |
| using | ConditionPromise = PromiseLike< C > |
| using | FalseFactory = promise_detail::PromiseFactory< void, F > |
| using | FalsePromise = typename FalseFactory::Promise |
| using | Result = typename PollTraits< decltype(std::declval< TruePromise >()())>::Type |
| using | State = absl::variant< Evaluating, TruePromise, FalsePromise > |
| using | TrueFactory = promise_detail::PromiseFactory< void, T > |
| using | TruePromise = typename TrueFactory::Promise |
Private Attributes | |
| State | state_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
|
inline |
|
private |