| 1 |
#include "floats.ih" |
| 2 |
|
| 3 |
//read |
| 4 |
void Floats::read() const |
| 5 |
{ |
| 6 |
Reader reader = coRead(); // coRead: the coroutine |
| 7 |
// reader: the coroutine's handler |
| 8 |
while (auto opt = reader.next()) // retrieve the next value |
| 9 |
cout << opt.value() << ' '; |
| 10 |
|
| 11 |
cout << '\n'; |
| 12 |
} |
| 13 |
//= |