Skip to content

Instantly share code, notes, and snippets.

@Serikov
Serikov / main.cpp
Last active December 9, 2024 21:18
C++ Coroutines Ts generator<T> with co_await
#include <coroutine>
#include <stdexcept>
#include <variant>
#include <memory>
namespace detail {
// simple type erasure for iterators
template<typename T>
struct generic_iterable