Skip to content

Update any_view.md#21

Merged
huixie90 merged 1 commit into
huixie90:mainfrom
patrickroberts:patch-2
Jun 10, 2026
Merged

Update any_view.md#21
huixie90 merged 1 commit into
huixie90:mainfrom
patrickroberts:patch-2

Conversation

@patrickroberts

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread any_view.md
Comment on lines 1764 to +1778
```cpp
friend constexpr RValueRef iter_move(const @*iterator*@ &iter);
```

:::bq

[32]{.pnum} *Preconditions*: `*this` has a *target iterator object*.
[36]{.pnum} *Preconditions*: `iter` has a *target iterator object*.

[33]{.pnum} *Effects*: Equivalent to:
[37]{.pnum} *Effects*: Equivalent to:

```cpp
return static_cast<RValueRef>(ranges::iter_move(it));
```

where `it` is an lvalue designating the *target iterator object* of `*this`
where `it` is an lvalue designating the *target iterator object* of `iter`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally changed *this to iter in wording for friend constexpr RValueRef iter_move(const iterator& iter);, which I assumed was a typo.

Comment thread any_view.md
[2]{.pnum} *Effects*:

- [2.1]{.pnum} If either `x` has no *target iterator object*, or `y` has a *target sentinel object*, equivalent to:
- [2.1]{.pnum} If either `x` has no *target iterator object*, or `y` has no *target sentinel object*, equivalent to:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And fixed the wording in effects for friend constexpr bool operator==(const iterator&, const sentinel&);, which I also assumed was just a typo.

@huixie90 huixie90 merged commit d445e5a into huixie90:main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants