Skip to content

Commit 828c649

Browse files
committed
[container.requirements] Rephrase in terms of const types not values
1 parent 6b50a35 commit 828c649

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/containers.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
\item
8686
\tcode{u} denotes an identifier,
8787
\item
88-
\tcode{r} denotes a non-const value of type \tcode{X}, and
88+
\tcode{r} denotes value of type (non-const) \tcode{X}, and
8989
\item
90-
\tcode{rv} denotes a non-const rvalue of type \tcode{X}.
90+
\tcode{rv} denotes an rvalue of type (non-const) \tcode{X}.
9191
\end{itemize}
9292

9393
\rSec3[container.reqmts]{Containers}
@@ -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},
@@ -2603,7 +2603,7 @@
26032603
\tcode{a2} denotes a value of a type with nodes compatible with type
26042604
\tcode{X} (\tref{container.node.compat}),
26052605
\item
2606-
\tcode{b} denotes a possibly \keyword{const} value of type \tcode{X},
2606+
\tcode{b} denotes a value of type \tcode{X} or \tcode{const X},
26072607
\item
26082608
\tcode{u} denotes the name of a variable being declared,
26092609
\item
@@ -2613,7 +2613,7 @@
26132613
\tcode{a_eq} denotes a value of type \tcode{X}
26142614
when \tcode{X} supports multiple keys,
26152615
\item
2616-
\tcode{a_tran} denotes a possibly \keyword{const} value of type \tcode{X}
2616+
\tcode{a_tran} denotes a value of type \tcode{X} or \tcode{const X}
26172617
when the \grammarterm{qualified-id}
26182618
\tcode{X::key_compare::is_transpa\-rent} is valid
26192619
and denotes a type\iref{temp.deduct},
@@ -2642,7 +2642,7 @@
26422642
\item
26432643
\tcode{k} denotes a value of type \tcode{X::key_type}, and
26442644
\item
2645-
\tcode{c} denotes a possibly \keyword{const} value of type \tcode{X::key_compare};
2645+
\tcode{c} denotes a value of type \tcode{X::key_compare} or \tcode{const X::key_compare};
26462646
\item
26472647
\tcode{kl} is a value such that \tcode{a} is partitioned\iref{alg.sorting}
26482648
with respect to \tcode{c(x, kl)},
@@ -4102,15 +4102,15 @@
41024102
\tcode{a2} denotes a value of a type with nodes compatible
41034103
with type \tcode{X} (\tref{container.node.compat}),
41044104
\item
4105-
\tcode{b} denotes a possibly const value of type \tcode{X},
4105+
\tcode{b} denotes a value of type \tcode{X} or \tcode{const X},
41064106
\item
41074107
\tcode{a_uniq} denotes a value of type \tcode{X}
41084108
when \tcode{X} supports unique keys,
41094109
\item
41104110
\tcode{a_eq} denotes a value of type \tcode{X}
41114111
when \tcode{X} supports equivalent keys,
41124112
\item
4113-
\tcode{a_tran} denotes a possibly const value of type \tcode{X}
4113+
\tcode{a_tran} denotes a value of type \tcode{X} or \tcode{const X}
41144114
when the \grammarterm{qualified-id}s
41154115
\tcode{X::key_equal::is_transparent} and
41164116
\tcode{X::hasher::is_transparent}
@@ -4139,9 +4139,9 @@
41394139
\item
41404140
\tcode{k} denotes a value of type \tcode{key_type},
41414141
\item
4142-
\tcode{hf} denotes a possibly const value of type \tcode{hasher},
4142+
\tcode{hf} denotes a value of type \tcode{hasher} or \tcode{const hasher},
41434143
\item
4144-
\tcode{eq} denotes a possibly const value of type \tcode{key_equal},
4144+
\tcode{eq} denotes a value of type \tcode{key_equal} or \tcode{const key_equal},
41454145
\item
41464146
\tcode{ke} is a value such that
41474147
\begin{itemize}
@@ -4165,7 +4165,7 @@
41654165
\item
41664166
\tcode{z} denotes a value of type \tcode{float}, and
41674167
\item
4168-
\tcode{nh} denotes a non-const rvalue of type \tcode{X::node_type}.
4168+
\tcode{nh} denotes an rvalue of type (non-const) \tcode{X::node_type}.
41694169
\end{itemize}
41704170

41714171
\pnum

0 commit comments

Comments
 (0)