Skip to content

Commit

Permalink
Moved private section in view::subrange
Browse files Browse the repository at this point in the history
Consistent with most other view classes
  • Loading branch information
OleErikPeistorpet committed Jun 2, 2024
1 parent d7d2aab commit 5e5abc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions view/subrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace oel::view
template< typename Iterator, typename Sentinel >
class subrange
{
_detail::TightPair<Iterator, Sentinel> _m;

public:
using difference_type = iter_difference_t<Iterator>;

Expand All @@ -42,9 +44,6 @@ class subrange

constexpr decltype(auto) operator[](difference_type index) const
OEL_REQUIRES(iter_is_random_access<Iterator>) OEL_ALWAYS_INLINE { return _m.first[index]; }

private:
_detail::TightPair<Iterator, Sentinel> _m;
};

}
Expand Down

0 comments on commit 5e5abc5

Please sign in to comment.