Skip to content

[ranges] make indentation consistent #5811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 15, 2022
Merged
Changes from 3 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
18 changes: 9 additions & 9 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1695,16 +1695,16 @@
}

constexpr auto cbegin() {
return ranges::cbegin(@\exposid{derived}@());
return ranges::cbegin(@\exposid{derived}@());
}
constexpr auto cbegin() const requires @\libconcept{range}@<const D> {
return ranges::cbegin(@\exposid{derived}@());
return ranges::cbegin(@\exposid{derived}@());
}
constexpr auto cend() {
return ranges::cend(@\exposid{derived}@());
return ranges::cend(@\exposid{derived}@());
}
constexpr auto cend() const requires @\libconcept{range}@<const D> {
return ranges::cend(@\exposid{derived}@());
return ranges::cend(@\exposid{derived}@());
}

constexpr explicit operator bool()
Expand Down Expand Up @@ -4481,9 +4481,9 @@
constexpr V base() && { return std::move(@\exposid{base_}@); }

constexpr auto begin() requires (!@\exposconcept{simple-view}@<V>)
{ return move_iterator(ranges::begin(@\exposid{base_}@)); }
{ return move_iterator(ranges::begin(@\exposid{base_}@)); }
constexpr auto begin() const requires @\libconcept{range}@<const V>
{ return move_iterator(ranges::begin(@\exposid{base_}@)); }
{ return move_iterator(ranges::begin(@\exposid{base_}@)); }

constexpr auto end() requires (!@\exposconcept{simple-view}@<V>) {
if constexpr (@\libconcept{common_range}@<V>) {
Expand Down Expand Up @@ -11197,9 +11197,9 @@
\begin{codeblock}
namespace std::ranges {
template<@\libconcept{forward_range}@ V, @\libconcept{move_constructible}@ F, size_t N>
requires @\libconcept{view}@<V> && (N > 0) && is_object_v<F> &&
@\libconcept{regular_invocable}@<F&, @\exposid{REPEAT}@(range_reference_t<V>, N)...> &&
@\exposconcept{can-reference}@<invoke_result_t<F&, @\exposid{REPEAT}@(range_reference_t<V>, N)...>>
requires @\libconcept{view}@<V> && (N > 0) && is_object_v<F> &&
@\libconcept{regular_invocable}@<F&, @\exposid{REPEAT}@(range_reference_t<V>, N)...> &&
@\exposconcept{can-reference}@<invoke_result_t<F&, @\exposid{REPEAT}@(range_reference_t<V>, N)...>>
class adjacent_transform_view : public view_interface<adjacent_transform_view<V, F, N>> {
@\exposidnc{movable-box}@<F> @\exposid{fun_}@; // \expos
adjacent_view<V, N> @\exposid{inner_}@; // \expos
Expand Down