Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] Comparison of repeat_view
  • Loading branch information
eseiler committed Sep 29, 2023
commit 362ee37f152afd4f1b3cd6c65d54fa0f0dbad088
13 changes: 9 additions & 4 deletions include/seqan3/utility/views/repeat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,15 @@ class repeat_view<value_t>::basic_iterator : public detail::random_access_iterat
/*!\name Comparison operators
* \{
*/
//!\brief Inherit the equality comparison (same type) from base type.
using base_t::operator==;
//!\brief Inherit the inequality comparison (same type) from base type.
using base_t::operator!=;
constexpr bool operator==(basic_iterator const & rhs) const noexcept
{
return base_t::operator==(rhs);
}

constexpr bool operator!=(basic_iterator const & rhs) const noexcept
{
return !(*this == rhs);
}

//!\brief Equality comparison to the sentinel always returns false on an infinite view.
constexpr bool operator==(std::default_sentinel_t const &) const noexcept
Expand Down