Add enum_range::size
This commit is contained in:
parent
02382155a7
commit
20302885b5
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ namespace psemek::util
|
|||
|
||||
auto begin() const { return first; }
|
||||
auto end() const { return last; }
|
||||
|
||||
auto size() const { return last.value - first.value; }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue