Add some util::range helper methods
This commit is contained in:
parent
d27d4cca17
commit
c639e533fe
1 changed files with 10 additions and 0 deletions
|
|
@ -65,6 +65,16 @@ namespace psemek::util
|
||||||
{
|
{
|
||||||
return it_end;
|
return it_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto size() const
|
||||||
|
{
|
||||||
|
return end() - begin();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto empty() const
|
||||||
|
{
|
||||||
|
return begin() == end();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue