wwa-coro 0.0.1
Yet Another C++20 Coroutine Library
|
Synchronous generator. More...
#include <coroutine>
#include <exception>
#include <iterator>
#include <memory>
#include <ranges>
#include <type_traits>
#include <utility>
#include "detail.h"
#include "exceptions.h"
Go to the source code of this file.
Classes | |
class | wwa::coro::generator< Result > |
An synchronous generator that produces values of type Result . More... | |
class | wwa::coro::generator< Result >::iterator |
An input iterator that produces values of type Result . More... | |
class | wwa::coro::generator< Result >::promise_type |
The promise type of the generator. More... | |
Namespaces | |
namespace | wwa |
namespace | wwa::coro |
Library namespace. | |
Synchronous generator.
This file contains the definition of a synchronous generator class template. The generator
template class allows for the creation of coroutine-based generators that produce values of a specified type. It provides an interface for iterating over the generated values using range-based for
loops or manual iteration.
Example usage:
Definition in file generator.h.