Skip to content

Commit

Permalink
Use read_at_unchecked() in default iterate() impl
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle committed Dec 18, 2024
1 parent 788dd5e commit b5587e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/flux/core/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ struct default_iter_traits {
if constexpr (bounded_sequence<Self> && regular_cursor<cursor_t<Self>>) {
auto const last = Traits::last(self);
while (cur != last) {
if (!std::invoke(pred, Traits::read_at(self, cur))) {
if (!std::invoke(pred, Traits::read_at_unchecked(self, cur))) {
return false;
}
Traits::inc(self, cur);
Expand Down

0 comments on commit b5587e2

Please sign in to comment.