|
1150 | 1150 | The \libconcept{view} concept specifies the requirements of a \libconcept{range} type |
1151 | 1151 | that has constant time move construction, move assignment, and destruction; |
1152 | 1152 | that is, the cost of these operations is |
1153 | | -independent of the number of elements in the \tcode{view}. |
| 1153 | +independent of the number of elements in the \libconcept{view}. |
1154 | 1154 |
|
1155 | 1155 | \begin{itemdecl} |
1156 | 1156 | template<class T> |
|
1182 | 1182 |
|
1183 | 1183 | \pnum |
1184 | 1184 | \begin{example} |
1185 | | -Examples of \tcode{view}s are: |
| 1185 | +Examples of \libconcept{view}s are: |
1186 | 1186 | \begin{itemize} |
1187 | 1187 | \item A \libconcept{range} type that wraps a pair of iterators. |
1188 | 1188 |
|
|
1331 | 1331 |
|
1332 | 1332 | \pnum |
1333 | 1333 | The class template \tcode{view_interface} is a helper for defining |
1334 | | -\tcode{view}-like types that offer a container-like interface. It is |
| 1334 | +\libconcept{view}-like types that offer a container-like interface. It is |
1335 | 1335 | parameterized with the type that is derived from it. |
1336 | 1336 |
|
1337 | 1337 | \indexlibraryglobal{view_interface}% |
|
3081 | 3081 | \rSec3[range.ref.view]{Class template \tcode{ref_view}} |
3082 | 3082 |
|
3083 | 3083 | \pnum |
3084 | | -\tcode{ref_view} is a \tcode{view} of the elements of some other \tcode{range}. |
| 3084 | +\tcode{ref_view} is a \libconcept{view} of the elements of some other \libconcept{range}. |
3085 | 3085 | \indexlibraryglobal{ref_view}% |
3086 | 3086 | \begin{codeblock} |
3087 | 3087 | namespace std::ranges { |
|
4495 | 4495 | \rSec3[range.take.while.overview]{Overview} |
4496 | 4496 |
|
4497 | 4497 | \pnum |
4498 | | -Given a unary predicate \tcode{pred} and a \tcode{view} \tcode{r}, |
4499 | | -\tcode{take_while_view} produces a \tcode{view} |
| 4498 | +Given a unary predicate \tcode{pred} and a \libconcept{view} \tcode{r}, |
| 4499 | +\tcode{take_while_view} produces a \libconcept{view} |
4500 | 4500 | of the range \range{begin(r)}{ranges::find_if_not(r, pred)}. |
4501 | 4501 |
|
4502 | 4502 | \indexlibraryglobal{take_while}% |
|
4672 | 4672 | \rSec3[range.drop.overview]{Overview} |
4673 | 4673 |
|
4674 | 4674 | \pnum |
4675 | | -\tcode{drop_view} produces a \tcode{view} |
4676 | | -excluding the first $N$ elements from another \tcode{view}, or |
4677 | | -an empty range if the adapted \tcode{view} contains fewer than $N$ elements. |
| 4675 | +\tcode{drop_view} produces a \libconcept{view} |
| 4676 | +excluding the first $N$ elements from another \libconcept{view}, or |
| 4677 | +an empty range if the adapted \libconcept{view} contains fewer than $N$ elements. |
4678 | 4678 |
|
4679 | 4679 | \pnum |
4680 | 4680 | The name \tcode{views::drop} denotes |
|
4811 | 4811 | \pnum |
4812 | 4812 | \remarks |
4813 | 4813 | In order to provide the amortized constant-time complexity required |
4814 | | -by the \tcode{range} concept |
| 4814 | +by the \libconcept{range} concept |
4815 | 4815 | when \tcode{drop_view} models \libconcept{forward_range}, |
4816 | 4816 | the first overload caches the result within the \tcode{drop_view} |
4817 | 4817 | for use on subsequent calls. |
|
4827 | 4827 | \rSec3[range.drop.while.overview]{Overview} |
4828 | 4828 |
|
4829 | 4829 | \pnum |
4830 | | -Given a unary predicate \tcode{pred} and a \tcode{view} \tcode{r}, |
4831 | | -\tcode{drop_while_view} produces a \tcode{view} |
| 4830 | +Given a unary predicate \tcode{pred} and a \libconcept{view} \tcode{r}, |
| 4831 | +\tcode{drop_while_view} produces a \libconcept{view} |
4832 | 4832 | of the range \range{ranges::find_if_not(r, pred)}{ranges::end(r)}. |
4833 | 4833 |
|
4834 | 4834 | \pnum |
|
4921 | 4921 | \pnum |
4922 | 4922 | \remarks |
4923 | 4923 | In order to provide the amortized constant-time complexity |
4924 | | -required by the \tcode{range} concept |
4925 | | -when \tcode{drop_while_view} models \tcode{forward_range}, |
| 4924 | +required by the \libconcept{range} concept |
| 4925 | +when \tcode{drop_while_view} models \libconcept{forward_range}, |
4926 | 4926 | the first call caches the result within the \tcode{drop_while_view} |
4927 | 4927 | for use on subsequent calls. |
4928 | 4928 | \begin{note} |
|
6234 | 6234 |
|
6235 | 6235 | \pnum |
6236 | 6236 | \tcode{elements_view} takes |
6237 | | -a \tcode{view} of tuple-like values and a \tcode{size_t}, and |
6238 | | -produces a \tcode{view} with a value-type of the $N^\text{th}$ element |
6239 | | -of the adapted \tcode{view}'s value-type. |
| 6237 | +a \libconcept{view} of tuple-like values and a \tcode{size_t}, and |
| 6238 | +produces a \libconcept{view} with a value-type of the $N^\text{th}$ element |
| 6239 | +of the adapted \libconcept{view}'s value-type. |
6240 | 6240 |
|
6241 | 6241 | \pnum |
6242 | 6242 | The name \tcode{views::elements<N>} denotes |
|
0 commit comments