Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Sep 26, 2024
1 parent bd0e875 commit e477e2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/basic_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, int>() const { return {s, e}; }
};

Expand Down

0 comments on commit e477e2a

Please sign in to comment.