Skip to content

Commit 88e574e

Browse files
jwakelytkoeppe
authored andcommitted
[container.requirements] Rephrase in terms of const types not values
1 parent ba51a53 commit 88e574e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/containers.tex

+10-10
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@
866866
and an \tcode{allocator_type} identical to \tcode{allocator_traits<A>::rebind_alloc<T>}
867867
and given an lvalue \tcode{m} of type \tcode{A},
868868
a pointer \tcode{p} of type \tcode{T*},
869-
an expression \tcode{v} of type (possibly \keyword{const}) \tcode{T},
869+
an expression \tcode{v} of type \tcode{T} or \tcode{const T},
870870
and an rvalue \tcode{rv} of type \tcode{T},
871871
the following terms are defined. If \tcode{X}
872872
is not allocator-aware or is a specialization of \tcode{basic_string},
@@ -2615,7 +2615,7 @@
26152615
\tcode{a2} denotes a value of a type with nodes compatible with type
26162616
\tcode{X} (\tref{container.node.compat}),
26172617
\item
2618-
\tcode{b} denotes a possibly \keyword{const} value of type \tcode{X},
2618+
\tcode{b} denotes a value or type \tcode{X} or \tcode{const X},
26192619
\item
26202620
\tcode{u} denotes the name of a variable being declared,
26212621
\item
@@ -2625,9 +2625,9 @@
26252625
\tcode{a_eq} denotes a value of type \tcode{X}
26262626
when \tcode{X} supports multiple keys,
26272627
\item
2628-
\tcode{a_tran} denotes a possibly \keyword{const} value of type \tcode{X}
2628+
\tcode{a_tran} denotes a value of type \tcode{X} or \tcode{const X}
26292629
when the \grammarterm{qualified-id}
2630-
\tcode{X::key_compare::is_transpa\-rent} is valid
2630+
\tcode{X::key_compare::is_transparent} is valid
26312631
and denotes a type\iref{temp.deduct},
26322632
\item
26332633
\tcode{i} and \tcode{j}
@@ -2654,7 +2654,7 @@
26542654
\item
26552655
\tcode{k} denotes a value of type \tcode{X::key_type}, and
26562656
\item
2657-
\tcode{c} denotes a possibly \keyword{const} value of type \tcode{X::key_compare};
2657+
\tcode{c} denotes a value of type \tcode{X::key_compare} or \tcode{const X::key_compare};
26582658
\item
26592659
\tcode{kl} is a value such that \tcode{a} is partitioned\iref{alg.sorting}
26602660
with respect to \tcode{c(x, kl)},
@@ -4114,15 +4114,15 @@
41144114
\tcode{a2} denotes a value of a type with nodes compatible
41154115
with type \tcode{X} (\tref{container.node.compat}),
41164116
\item
4117-
\tcode{b} denotes a possibly const value of type \tcode{X},
4117+
\tcode{b} denotes a value of type \tcode{X} or \tcode{const X},
41184118
\item
41194119
\tcode{a_uniq} denotes a value of type \tcode{X}
41204120
when \tcode{X} supports unique keys,
41214121
\item
41224122
\tcode{a_eq} denotes a value of type \tcode{X}
41234123
when \tcode{X} supports equivalent keys,
41244124
\item
4125-
\tcode{a_tran} denotes a possibly const value of type \tcode{X}
4125+
\tcode{a_tran} denotes a value of type \tcode{X} or \tcode{const X}
41264126
when the \grammarterm{qualified-id}s
41274127
\tcode{X::key_equal::is_transparent} and
41284128
\tcode{X::hasher::is_transparent}
@@ -4151,9 +4151,9 @@
41514151
\item
41524152
\tcode{k} denotes a value of type \tcode{key_type},
41534153
\item
4154-
\tcode{hf} denotes a possibly const value of type \tcode{hasher},
4154+
\tcode{hf} denotes a value of type \tcode{hasher} or \tcode{const hasher},
41554155
\item
4156-
\tcode{eq} denotes a possibly const value of type \tcode{key_equal},
4156+
\tcode{eq} denotes a value of type \tcode{key_equal} or \tcode{const key_equal},
41574157
\item
41584158
\tcode{ke} is a value such that
41594159
\begin{itemize}
@@ -4177,7 +4177,7 @@
41774177
\item
41784178
\tcode{z} denotes a value of type \tcode{float}, and
41794179
\item
4180-
\tcode{nh} denotes a non-const rvalue of type \tcode{X::node_type}.
4180+
\tcode{nh} denotes an rvalue of type \tcode{X::node_type}.
41814181
\end{itemize}
41824182

41834183
\pnum

0 commit comments

Comments
 (0)