Skip to content

Commit ba29eec

Browse files
Merge pull request #4629 from TylerMSFT/ranges
fix misleading sentence about view elements
2 parents e383c4c + 4849d15 commit ba29eec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/standard-library/ranges.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "<ranges>"
33
description: "Overview of the Standard Template Library (STL) ranges library"
4-
ms.date: 09/26/2022
4+
ms.date: 10/25/2022
55
f1_keywords: ["<ranges>"]
66
helpviewer_keywords: ["ranges"]
77
---
@@ -41,14 +41,14 @@ Besides being easier to read, it avoids the memory allocation required for the `
4141

4242
In the code above, each element that is divisible by three is combined with an operation to square that element. The '`|`' symbol chains the operations together, and is read left to right.
4343

44-
The result, `output`, is itself a type of range called a *view*.
44+
The result, `output`, is itself a kind of range called a *view*.
4545

4646
> [!NOTE]
4747
> The ranges examples require the [`/std:c++latest`](../build/reference/std-specify-language-standard-version.md) compiler option. Because post-release updates to `<ranges>` in the C++20 Standard are a work in progress, the features that require `std::views` aren't enabled yet under **`/std:c++20`**.
4848
4949
## Views
5050

51-
A *view* is a lightweight range. View operations such as default construction, move construction/assignment, copy construction/assignment (if present), destruction, begin and end, all happen in constant time regardless of the number of elements in the view. Changing an element in a view doesn't change the corresponding element in the range used to create the view.
51+
A *view* is a lightweight range. View operations such as default construction, move construction/assignment, copy construction/assignment (if present), destruction, begin and end, all happen in constant time regardless of the number of elements in the view.
5252

5353
Views are created by range adaptors, which are discussed in the following section. For more information about the classes that implement various views, see [View classes](view-classes.md).
5454

0 commit comments

Comments
 (0)