|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Forwarding header for jh::generator.
More...
#include "jh/asynchronous/generator.h"Go to the source code of this file.
Classes | |
| class | jh::generator_range< T > |
| A range-like wrapper that enables iteration over a generator factory. More... | |
Typedefs | |
| template<typename T, typename U = typed::monostate> | |
| using | jh::generator = async::generator<T, U> |
Alias of jh::async::generator in the root namespace. | |
Functions | |
| template<concepts::sequence SeqType> | |
| generator< concepts::sequence_value_t< SeqType > > | jh::make_generator (const SeqType &seq) |
Alias of jh::async::make_generator. | |
| template<typename T> | |
| std::vector< T > | jh::to_vector (generator< T > &gen) |
Alias of jh::async::to_vector for generator-based conversion. | |
| template<typename T> | |
| std::deque< T > | jh::to_deque (generator< T > &gen) |
Alias of jh::async::to_deque for generator-based conversion. | |
Forwarding header for jh::generator.
This header provides the canonical include entry for jh::generator<T, U> — a coroutine-based generator type for asynchronous iteration.
#include <jh/generator>Internally, this file forwards to jh/asynchronous/generator.h, which defines jh::async::generator and related utilities. Including this header additionally promotes these symbols into the root namespace jh, allowing use as jh::generator instead of jh::async::generator.
The same functionality is also available through:
<jh/asynchronous/generator.h> — defines jh::async::generator directly. <jh/async> — available since v1.4.0, aggregates all asynchronous facilities under jh::async.