|
HikoGUI
A low latency retained GUI
|
#include <hikogui/when_any.hpp>
Public Types | |
| using | result_type = std::variant<std::monostate, detail::when_any_result_element_t<Ts>...> |
| using | awaiter_type = std::variant<std::monostate, Ts...> |
Public Member Functions | |
| when_any_result (when_any_result const &) noexcept=default | |
| when_any_result (when_any_result &&) noexcept=default | |
| when_any_result & | operator= (when_any_result const &) noexcept=default |
| when_any_result & | operator= (when_any_result &&) noexcept=default |
| template<std::size_t I, typename Awaiter , typename... Result> | |
| when_any_result (std::in_place_index_t< I >, Awaiter const &awaiter, Result &&...result) noexcept | |
| bool | timeout () const noexcept |
| std::size_t | index () const noexcept |
| The index of the awaitable that was triggered. | |
| bool | operator== (awaitable auto const &rhs) const noexcept |
Comparison to check if the awaitable was the one that triggered when_any. | |
Friends | |
| template<typename T > | |
| auto & | get (when_any_result const &rhs) noexcept |
Get the value returned by the awaitable that triggered when_any. | |
| template<std::size_t I> | |
| auto & | get (when_any_result const &rhs) noexcept |
Get the value returned by the awaitable that triggered when_any. | |
Result of the when_any awaitable.
|
inlinenoexcept |
The index of the awaitable that was triggered.
|
inlinenoexcept |
Comparison to check if the awaitable was the one that triggered when_any.
|
friend |
Get the value returned by the awaitable that triggered when_any.
|
friend |
Get the value returned by the awaitable that triggered when_any.