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
8 changes: 1 addition & 7 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -3074,16 +3074,10 @@ namespace ranges {
is_nothrow_move_constructible_v<_Outer_iter>) // strengthened
: _First{_STD move(_First_)} {}

_NODISCARD constexpr auto begin() const requires copyable<_Outer_iter> {
_NODISCARD constexpr auto begin() const {
return _Inner_iter<_Const>{_First};
}

// clang-format off
_NODISCARD constexpr auto begin() requires (!copyable<_Outer_iter>) {
return _Inner_iter<_Const>{_STD move(_First)};
}
// clang-format on

_NODISCARD constexpr default_sentinel_t end() const noexcept {
return default_sentinel;
}
Expand Down