Py2Cpp 1.6.3; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
Classes | Namespaces
gen.hpp File Reference

Minimal C++20 coroutine-based generator. More...

#include <coroutine>
#include <exception>
#include <iterator>
#include <type_traits>
#include <utility>
Include dependency graph for gen.hpp:

Go to the source code of this file.

Classes

class  py::Generator< T >
 Minimal generator using C++20 coroutines. More...
 
struct  py::Generator< T >::promise_type
 
class  py::Generator< T >::iterator
 

Namespaces

namespace  py
 Python-like utilities and data structures for C++.
 

Detailed Description

Minimal C++20 coroutine-based generator.

Provides a Generator template that mimics Python-style generators using C++20 coroutines with co_yield support.