☰
Debian Codegraph
@
13.04.01-1
/
/
yo
/
coroutines
/
demo
/
recursive2
/
recursive
/
recursive.cc
☽
☼
yo/coroutines/demo/recursive2/recursive/recursive.cc
code
plain
raw
GPL-2+
1994-2025 by Frank B. Brokken, University of Groningen.
debian/copyright
1
#include "recursive.ih"
2
3
Recursive::~Recursive()
4
{
5
d_handle.destroy();
6
}
7
8
//next
9
bool Recursive::next(size_t *value)
10
{
11
d_handle.resume();
12
13
if (d_handle.done())
14
return false;
15
16
*value = d_handle.promise().value();
17
return true;
18
}
19
//=