From e477e2a37e4f08d9dae4c2d829dc9b701378f53f Mon Sep 17 00:00:00 2001 From: Luke Roberts Date: Thu, 26 Sep 2024 13:43:33 -0600 Subject: [PATCH] small --- src/basic_types.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic_types.hpp b/src/basic_types.hpp index 4db850021984..401aa90f3b9d 100644 --- a/src/basic_types.hpp +++ b/src/basic_types.hpp @@ -42,6 +42,7 @@ using Real = double; struct IndexRange { int s = 0; /// Starting Index (inclusive) int e = 0; /// Ending Index (inclusive) + int size() const { return e - s + 1;} operator std::pair() const { return {s, e}; } };