Skip to content

Commit da6d304

Browse files
committed
Split second part of wording into Remarks in consistency with data/c_str() wording
1 parent 5dfad39 commit da6d304

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

xml/issue4378.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@ constexpr reference operator[](size_type pos);
7171
<p/>
7272
-2- <i>Returns</i>: `*(begin() + pos)` if <tt>pos &lt;<ins>=</ins> size()</tt>. <del>Otherwise, returns a reference
7373
to an object of type `charT` with value `charT()`, where modifying the object to any value other
74-
than `charT()` leads to undefined behavior</del><ins>The program shall not modify the value
75-
stored at `size()` to any value other than `charT()`; otherwise, the behavior is undefined</ins>.
74+
than `charT()` leads to undefined behavior.</del>
75+
<p/>
76+
-3- <i>Throws</i>: Nothing.
77+
<p/>
78+
-4- <i>Complexity</i>: Constant time.
79+
<p/>
80+
<ins>-?- <i>Remarks</i> The program shall not modify the value stored at `size()` to any value other than `charT()`;
81+
otherwise, the behavior is undefined</ins>
7682
</p>
7783
</blockquote>
7884
</blockquote>

0 commit comments

Comments
 (0)