Skip to content

Commit 8958e95

Browse files
tkoeppezygoloid
authored andcommitted
[unord.req] Spell out the behaviour of cbegin/cend, remove ambiguous note
1 parent b64354a commit 8958e95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/containers.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,8 +2746,9 @@
27462746
\tcode{b.cbegin(n)}
27472747
& \tcode{const_local_iterator}
27482748
& \requires \tcode{n} shall be in the range \tcode{[0, b.bucket_count())}.
2749-
Note: \tcode{[b.cbegin(n), b.cend(n))} is a valid range containing
2750-
all of the elements in the $\texttt{n}^{\textrm{ th}}$ bucket.%
2749+
\tcode{b.cbegin(n)} returns an iterator referring to the
2750+
first element in the bucket. If the bucket is empty, then
2751+
\tcode{b.cbegin(n) == b.cend(n)}.%
27512752
\indextext{unordered associative containers!\idxcode{cbegin}}%
27522753
\indextext{\idxcode{cbegin}!unordered associative containers}%
27532754
& Constant
@@ -2756,6 +2757,8 @@
27562757
\tcode{b.cend(n)}
27572758
& \tcode{const_local_iterator}
27582759
& \requires \tcode{n} shall be in the range \tcode{[0, b.bucket_count())}.%
2760+
\tcode{b.cend(n)} returns an iterator which is the past-the-end
2761+
value for the bucket.%
27592762
\indextext{unordered associative containers!\idxcode{cend}}%
27602763
\indextext{\idxcode{cend}!unordered associative containers}%
27612764
& Constant

0 commit comments

Comments
 (0)