[iter] Test that default-constructed iterators are empty
This commit is contained in:
parent
f35e7eabf1
commit
2aff6d9625
|
@ -72,6 +72,8 @@ test_iterator (Iter it)
|
|||
{
|
||||
Iter default_constructed;
|
||||
|
||||
assert (!default_constructed);
|
||||
|
||||
/* Iterate over a copy of it. */
|
||||
for (auto c = it.iter (); c; c++)
|
||||
*c;
|
||||
|
|
Loading…
Reference in New Issue