|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Promise type for generator. More...
#include <generator.h>

Public Types | |
| using | value_type = std::remove_reference_t<T> |
| using | reference_type = std::conditional_t<std::is_reference_v<T>, T, T&> |
| using | pointer_type = value_type* |
Public Member Functions | |
| generator< T > | get_return_object () noexcept |
| Get return object (the generator) | |
| std::suspend_always | initial_suspend () noexcept |
| Suspend at start - generators are lazy. | |
| std::suspend_always | final_suspend () noexcept |
| Suspend at final point. | |
| std::suspend_always | yield_value (value_type &value) noexcept |
| Yield a value. | |
| std::suspend_always | yield_value (value_type &&value) noexcept |
| Yield an rvalue. | |
| void | return_void () noexcept |
| Generators don't return values directly. | |
| void | unhandled_exception () noexcept |
| Handle unhandled exceptions. | |
| reference_type | value () const noexcept |
| Get the current value. | |
| void | rethrow_if_exception () |
| Rethrow stored exception if any. | |
Public Attributes | |
| pointer_type | current_value_ {nullptr} |
| std::exception_ptr | exception_ |
Promise type for generator.
Definition at line 51 of file generator.h.
| using kcenon::container::async::detail::generator_promise< T >::pointer_type = value_type* |
Definition at line 55 of file generator.h.
| using kcenon::container::async::detail::generator_promise< T >::reference_type = std::conditional_t<std::is_reference_v<T>, T, T&> |
Definition at line 54 of file generator.h.
| using kcenon::container::async::detail::generator_promise< T >::value_type = std::remove_reference_t<T> |
Definition at line 53 of file generator.h.
|
inlinenodiscardnoexcept |
|
nodiscardnoexcept |
Get return object (the generator)
Definition at line 333 of file generator.h.
|
inlinenodiscardnoexcept |
Suspend at start - generators are lazy.
Definition at line 68 of file generator.h.
|
inline |
Rethrow stored exception if any.
Definition at line 123 of file generator.h.
References kcenon::container::async::detail::generator_promise< T >::exception_.
|
inlinenoexcept |
|
inlinenoexcept |
Handle unhandled exceptions.
Definition at line 107 of file generator.h.
References kcenon::container::async::detail::generator_promise< T >::exception_.
|
inlinenodiscardnoexcept |
Get the current value.
Definition at line 115 of file generator.h.
References kcenon::container::async::detail::generator_promise< T >::current_value_.
|
inlinenoexcept |
Yield an rvalue.
Definition at line 93 of file generator.h.
References kcenon::container::async::detail::generator_promise< T >::current_value_.
|
inlinenoexcept |
Yield a value.
Definition at line 84 of file generator.h.
References kcenon::container::async::detail::generator_promise< T >::current_value_.
| pointer_type kcenon::container::async::detail::generator_promise< T >::current_value_ {nullptr} |
Definition at line 57 of file generator.h.
Referenced by kcenon::container::async::detail::generator_promise< T >::value(), kcenon::container::async::detail::generator_promise< T >::yield_value(), and kcenon::container::async::detail::generator_promise< T >::yield_value().
| std::exception_ptr kcenon::container::async::detail::generator_promise< T >::exception_ |
Definition at line 58 of file generator.h.
Referenced by kcenon::container::async::detail::generator_promise< T >::rethrow_if_exception(), and kcenon::container::async::detail::generator_promise< T >::unhandled_exception().