Skip to content
Merged
Changes from all commits
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
7 changes: 3 additions & 4 deletions stl/inc/iterator
Original file line number Diff line number Diff line change
Expand Up @@ -1312,12 +1312,12 @@ public:
}

_NODISCARD friend constexpr iter_difference_t<_Iter> operator-(
const counted_iterator& _Left, default_sentinel_t) noexcept /* strengthened */ {
const counted_iterator& _Left, default_sentinel_t) noexcept {
return -_Left._Length;
}

_NODISCARD friend constexpr iter_difference_t<_Iter> operator-(
default_sentinel_t, const counted_iterator& _Right) noexcept /* strengthened */ {
default_sentinel_t, const counted_iterator& _Right) noexcept {
return _Right._Length;
}

Expand All @@ -1342,8 +1342,7 @@ public:
return _Left._Length == _Right.count();
}

_NODISCARD friend constexpr bool operator==(const counted_iterator& _Left, default_sentinel_t) noexcept
/* strengthened */ {
_NODISCARD friend constexpr bool operator==(const counted_iterator& _Left, default_sentinel_t) noexcept {
return _Left._Length == 0;
}

Expand Down