3 ms·
That's just a simple example. I think the following should work, possibly with modification for forwarding: class Stooge {...}; CoroutineIterator<Sto
by klyrs 6y ago
That's just a simple example. I think the following should work, possibly with modification for forwarding:
class Stooge {...};
CoroutineIterator<Stooge> three_stooges() {
co_yield Stooge("Larry");
co_yield Stooge("Curly");
co_yield Stooge("Moe");
}