Merge branch 'tests' into dev

This commit is contained in:
Kruno Tomola Fabro
2016-08-19 18:48:48 +01:00
8 changed files with 255 additions and 18 deletions

View File

@@ -352,11 +352,13 @@ public:
return succs[0]->value();
}
bool has_next()
{
assert(succs[0] != nullptr);
return succs[0].forward(0) != nullptr;
}
// WRONG THIS CAN POSSIBLY NOT BE TRUE IF SOMEONE JUST AFTER THIS REMOVE
// ELEMENT AFTER THIS ONE.
// bool has_next()
// {
// assert(succs[0] != nullptr);
// return succs[0].forward(0) != nullptr;
// }
bool has_value() { return succs[0] != nullptr; }