Skip to content

Instantly share code, notes, and snippets.

@Serikov
Serikov / main.cpp
Last active April 4, 2023 12:12
C++ Coroutines Ts generator<T> with co_await
#include <experimental/coroutine>
#include <stdexcept>
#include <variant>
namespace detail {
// simple type erasure for iterators
template<typename T>
struct generic_iterable
{