Skip to content

Commit 9268bb7

Browse files
jensmaurertkoeppe
authored andcommitted
[std] Add space between cv-qualifier and ref-qualifier
1 parent d74c217 commit 9268bb7

File tree

3 files changed

+64
-64
lines changed

3 files changed

+64
-64
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@
965965
void h(this X&, int);
966966
void h(int) &&; // OK, another overload
967967
void j(this const X&);
968-
void j() const&; // error: redeclaration
968+
void j() const &; // error: redeclaration
969969
void k();
970970
void k(this X&); // error: redeclaration
971971
};

source/ranges.tex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,9 +3761,9 @@
37613761
owning_view& operator=(owning_view&&) = default;
37623762

37633763
constexpr R& base() & noexcept { return @\exposid{r_}@; }
3764-
constexpr const R& base() const& noexcept { return @\exposid{r_}@; }
3764+
constexpr const R& base() const & noexcept { return @\exposid{r_}@; }
37653765
constexpr R&& base() && noexcept { return std::move(@\exposid{r_}@); }
3766-
constexpr const R&& base() const&& noexcept { return std::move(@\exposid{r_}@); }
3766+
constexpr const R&& base() const && noexcept { return std::move(@\exposid{r_}@); }
37673767

37683768
constexpr iterator_t<R> begin() { return ranges::begin(@\exposid{r_}@); }
37693769
constexpr sentinel_t<R> end() { return ranges::end(@\exposid{r_}@); }
@@ -3851,7 +3851,7 @@
38513851
filter_view() requires @\libconcept{default_initializable}@<V> && @\libconcept{default_initializable}@<Pred> = default;
38523852
constexpr filter_view(V base, Pred pred);
38533853

3854-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
3854+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
38553855
constexpr V base() && { return std::move(@\exposid{base_}@); }
38563856

38573857
constexpr const Pred& pred() const;
@@ -4278,7 +4278,7 @@
42784278
transform_view() requires @\libconcept{default_initializable}@<V> && @\libconcept{default_initializable}@<F> = default;
42794279
constexpr transform_view(V base, F fun);
42804280

4281-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
4281+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
42824282
constexpr V base() && { return std::move(@\exposid{base_}@); }
42834283

42844284
constexpr @\exposid{iterator}@<false> begin();
@@ -5002,7 +5002,7 @@
50025002
take_view() requires @\libconcept{default_initializable}@<V> = default;
50035003
constexpr take_view(V base, range_difference_t<V> count);
50045004

5005-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
5005+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
50065006
constexpr V base() && { return std::move(@\exposid{base_}@); }
50075007

50085008
constexpr auto begin() requires (!@\exposconcept{simple-view}@<V>) {
@@ -5217,7 +5217,7 @@
52175217
take_while_view() requires @\libconcept{default_initializable}@<V> && @\libconcept{default_initializable}@<Pred> = default;
52185218
constexpr take_while_view(V base, Pred pred);
52195219

5220-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
5220+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
52215221
constexpr V base() && { return std::move(@\exposid{base_}@); }
52225222

52235223
constexpr const Pred& pred() const;
@@ -5426,7 +5426,7 @@
54265426
drop_view() requires @\libconcept{default_initializable}@<V> = default;
54275427
constexpr drop_view(V base, range_difference_t<V> count);
54285428

5429-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
5429+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
54305430
constexpr V base() && { return std::move(@\exposid{base_}@); }
54315431

54325432
constexpr auto begin()
@@ -5551,7 +5551,7 @@
55515551
drop_while_view() requires @\libconcept{default_initializable}@<V> && @\libconcept{default_initializable}@<Pred> = default;
55525552
constexpr drop_while_view(V base, Pred pred);
55535553

5554-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
5554+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
55555555
constexpr V base() && { return std::move(@\exposid{base_}@); }
55565556

55575557
constexpr const Pred& pred() const;
@@ -5677,7 +5677,7 @@
56775677
join_view() requires @\libconcept{default_initializable}@<V> = default;
56785678
constexpr explicit join_view(V base);
56795679

5680-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
5680+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
56815681
constexpr V base() && { return std::move(@\exposid{base_}@); }
56825682

56835683
constexpr auto begin() {
@@ -6183,7 +6183,7 @@
61836183
@\libconcept{constructible_from}@<Pattern, single_view<range_value_t<@\exposid{InnerRng}@>>>
61846184
constexpr join_with_view(R&& r, range_value_t<@\exposid{InnerRng}@> e);
61856185

6186-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
6186+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
61876187
constexpr V base() && { return std::move(@\exposid{base_}@); }
61886188

61896189
constexpr auto begin() {
@@ -6767,7 +6767,7 @@
67676767
@\libconcept{constructible_from}@<Pattern, single_view<range_value_t<R>>>
67686768
constexpr lazy_split_view(R&& r, range_value_t<R> e);
67696769

6770-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
6770+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
67716771
constexpr V base() && { return std::move(@\exposid{base_}@); }
67726772

67736773
constexpr auto begin() {
@@ -7310,7 +7310,7 @@
73107310
@\libconcept{constructible_from}@<Pattern, single_view<range_value_t<R>>>
73117311
constexpr split_view(R&& r, range_value_t<R> e);
73127312

7313-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
7313+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
73147314
constexpr V base() && { return std::move(@\exposid{base_}@); }
73157315

73167316
constexpr @\exposid{iterator}@ begin();
@@ -7660,7 +7660,7 @@
76607660

76617661
constexpr explicit common_view(V r);
76627662

7663-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
7663+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
76647664
constexpr V base() && { return std::move(@\exposid{base_}@); }
76657665

76667666
constexpr auto begin() {
@@ -7781,7 +7781,7 @@
77817781

77827782
constexpr explicit reverse_view(V r);
77837783

7784-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
7784+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
77857785
constexpr V base() && { return std::move(@\exposid{base_}@); }
77867786

77877787
constexpr reverse_iterator<iterator_t<V>> begin();
@@ -7953,7 +7953,7 @@
79537953
elements_view() requires @\libconcept{default_initializable}@<V> = default;
79547954
constexpr explicit elements_view(V base);
79557955

7956-
constexpr V base() const& requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
7956+
constexpr V base() const & requires @\libconcept{copy_constructible}@<V> { return @\exposid{base_}@; }
79577957
constexpr V base() && { return std::move(@\exposid{base_}@); }
79587958

79597959
constexpr auto begin() requires (!@\exposconcept{simple-view}@<V>)

0 commit comments

Comments
 (0)