diff options
Diffstat (limited to 'include/dchat/Range.hpp')
-rw-r--r-- | include/dchat/Range.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dchat/Range.hpp b/include/dchat/Range.hpp new file mode 100644 index 0000000..a3a9581 --- /dev/null +++ b/include/dchat/Range.hpp @@ -0,0 +1,15 @@ +#pragma once + +namespace dchat +{ + struct Range + { + int start; + int end; + + int length() const + { + return end - start; + } + }; +}
\ No newline at end of file |