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.
Loading...
Searching...
No Matches
generator File Reference

Forwarding header for jh::generator. More...

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.

Detailed Description

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: