Skip to content

Commit 14952c5

Browse files
burblebeejensmaurer
authored andcommitted
[std] Fixes for library concepts that should be \libconcept'd.
1 parent 4faf57e commit 14952c5

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

source/iterators.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2867,7 +2867,7 @@
28672867
\begin{itemdescr}
28682868
\pnum
28692869
\expects
2870-
Either \tcode{assignable_from<I\&, S> || sized_sentinel_for<S, I>} is modeled, or
2870+
Either \tcode{\libconcept{assignable_from}<I\&, S> || \libconcept{sized_sentinel_for}<S, I>} is modeled, or
28712871
\range{i}{bound} denotes a range.
28722872

28732873
\pnum

source/ranges.tex

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@
11501150
The \libconcept{view} concept specifies the requirements of a \libconcept{range} type
11511151
that has constant time move construction, move assignment, and destruction;
11521152
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}.
11541154

11551155
\begin{itemdecl}
11561156
template<class T>
@@ -1182,7 +1182,7 @@
11821182

11831183
\pnum
11841184
\begin{example}
1185-
Examples of \tcode{view}s are:
1185+
Examples of \libconcept{view}s are:
11861186
\begin{itemize}
11871187
\item A \libconcept{range} type that wraps a pair of iterators.
11881188

@@ -1331,7 +1331,7 @@
13311331

13321332
\pnum
13331333
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
13351335
parameterized with the type that is derived from it.
13361336

13371337
\indexlibraryglobal{view_interface}%
@@ -3081,7 +3081,7 @@
30813081
\rSec3[range.ref.view]{Class template \tcode{ref_view}}
30823082

30833083
\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}.
30853085
\indexlibraryglobal{ref_view}%
30863086
\begin{codeblock}
30873087
namespace std::ranges {
@@ -4495,8 +4495,8 @@
44954495
\rSec3[range.take.while.overview]{Overview}
44964496

44974497
\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}
45004500
of the range \range{begin(r)}{ranges::find_if_not(r, pred)}.
45014501

45024502
\indexlibraryglobal{take_while}%
@@ -4672,9 +4672,9 @@
46724672
\rSec3[range.drop.overview]{Overview}
46734673

46744674
\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.
46784678

46794679
\pnum
46804680
The name \tcode{views::drop} denotes
@@ -4811,7 +4811,7 @@
48114811
\pnum
48124812
\remarks
48134813
In order to provide the amortized constant-time complexity required
4814-
by the \tcode{range} concept
4814+
by the \libconcept{range} concept
48154815
when \tcode{drop_view} models \libconcept{forward_range},
48164816
the first overload caches the result within the \tcode{drop_view}
48174817
for use on subsequent calls.
@@ -4827,8 +4827,8 @@
48274827
\rSec3[range.drop.while.overview]{Overview}
48284828

48294829
\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}
48324832
of the range \range{ranges::find_if_not(r, pred)}{ranges::end(r)}.
48334833

48344834
\pnum
@@ -4921,8 +4921,8 @@
49214921
\pnum
49224922
\remarks
49234923
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},
49264926
the first call caches the result within the \tcode{drop_while_view}
49274927
for use on subsequent calls.
49284928
\begin{note}
@@ -6234,9 +6234,9 @@
62346234

62356235
\pnum
62366236
\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.
62406240

62416241
\pnum
62426242
The name \tcode{views::elements<N>} denotes

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4675,7 +4675,7 @@
46754675
\end{note}
46764676
\end{itemdescr}
46774677

4678-
\rSec2[cmp.concept]{Concept \tcode{three_way_comparable}}
4678+
\rSec2[cmp.concept]{Concept \libconcept{three_way_comparable}}
46794679

46804680
\begin{codeblock}
46814681
template<class T, class Cat>

source/utilities.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14120,7 +14120,7 @@
1412014120
\begin{codeblock}
1412114121
struct compare_three_way {
1412214122
template<class T, class U>
14123-
requires three_way_comparable_with<T, U> || @\placeholdernc{BUILTIN-PTR-THREE-WAY}@(T, U)
14123+
requires @\libconcept{three_way_comparable_with}@<T, U> || @\placeholdernc{BUILTIN-PTR-THREE-WAY}@(T, U)
1412414124
constexpr auto operator()(T&& t, U&& u) const;
1412514125

1412614126
using is_transparent = @\unspec@;
@@ -14129,7 +14129,7 @@
1412914129

1413014130
\begin{itemdecl}
1413114131
template<class T, class U>
14132-
requires three_way_comparable_with<T, U> || @\placeholdernc{BUILTIN-PTR-THREE-WAY}@(T, U)
14132+
requires @\libconcept{three_way_comparable_with}@<T, U> || @\placeholdernc{BUILTIN-PTR-THREE-WAY}@(T, U)
1413314133
constexpr auto operator()(T&& t, U&& u) const;
1413414134
\end{itemdecl}
1413514135

0 commit comments

Comments
 (0)