Skip to content

Commit bd26196

Browse files
committed
D3016R1 draft revision 6
The removed editorial-nit is now cplusplus#6680
1 parent 5e5673d commit bd26196

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

d3016-valarray.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Title: Resolve inconsistencies in begin/end for <code>valarray</code> and braced initializer lists
33
Shortname: D3016
44
Revision: 1
5-
!Draft Revision: 5
5+
!Draft Revision: 6
66
Audience: LEWG
77
Status: D
88
Group: WG21
@@ -515,7 +515,7 @@ namespace std {
515515
<p>1․ An object of type `initializer_list<E>` provides access to an array of objects of type `const E`.
516516
<p><i>[Note: A pair of pointers or a pointer plus a length would be obvious representations for `initializer_list`.
517517
`initializer_list` is used to implement initializer lists as specified in [dcl.init.list].
518-
Copying an <del>initializer list</del> <ins>`initializer_list`</ins> does not copy the underlying elements. — end note]</i>
518+
Copying an `initializer_list` does not copy the underlying elements. — end note]</i>
519519
<p>2․ If an explicit specialization or partial specialization of `initializer_list` is declared, the program is ill-formed.
520520

521521
<b>17.10.3 Initializer list constructors [support.initlist.cons]</b>

d3016-valarray.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span cla
21052105
<dt>Project:
21062106
<dd>ISO/IEC 14882 Programming Languages — C++, ISO/IEC JTC1/SC22/WG21
21072107
<dt>Draft Revision:
2108-
<dd>5
2108+
<dd>6
21092109
</dl>
21102110
</div>
21112111
<div data-fill-with="warning"></div>
@@ -2483,7 +2483,7 @@ <h3 class="heading settled" data-level="5.4" id="wording-support.initlist"><span
24832483
<del><c- k>template</c-><c- o>&lt;</c-><c- k>class</c-> <c- nc>E</c-><c- o>></c-> <c- k>constexpr</c-> <c- k>const</c-> <c- n>E</c-><c- o>*</c-> <c- n>end</c-><c- p>(</c-><c- n>initializer_list</c-><c- o>&lt;</c-><c- n>E</c-><c- o>></c-> <c- n>il</c-><c- p>)</c-> <c- k>noexcept</c-><c- p>;</c-></del>
24842484
<c- p>}</c->
24852485
</pre><p>1․ An object of type <code class="highlight"><c- n>initializer_list</c-><c- o>&lt;</c-><c- n>E</c-><c- o>></c-></code> provides access to an array of objects of type <code class="highlight"><c- k>const</c-> <c- n>E</c-></code>. </p><p><i>[Note: A pair of pointers or a pointer plus a length would be obvious representations for <code class="highlight"><c- n>initializer_list</c-></code>. <code class="highlight"><c- n>initializer_list</c-></code> is used to implement initializer lists as specified in [dcl.init.list].
2486-
Copying an <del>initializer list</del> <ins><code class="highlight"><c- n>initializer_list</c-></code></ins> does not copy the underlying elements. — end note]</i> </p><p>2․ If an explicit specialization or partial specialization of <code class="highlight"><c- n>initializer_list</c-></code> is declared, the program is ill-formed. </p><p><b>17.10.3 Initializer list constructors [support.initlist.cons]</b></p> <pre class="highlight"><c- k>constexpr</c-> <c- n>initializer_list</c-><c- p>()</c-> <c- k>noexcept</c-><c- p>;</c->
2486+
Copying an <code class="highlight"><c- n>initializer_list</c-></code> does not copy the underlying elements. — end note]</i> </p><p>2․ If an explicit specialization or partial specialization of <code class="highlight"><c- n>initializer_list</c-></code> is declared, the program is ill-formed. </p><p><b>17.10.3 Initializer list constructors [support.initlist.cons]</b></p> <pre class="highlight"><c- k>constexpr</c-> <c- n>initializer_list</c-><c- p>()</c-> <c- k>noexcept</c-><c- p>;</c->
24872487
</pre><p>1․ Postconditions: <code class="highlight"><c- n>size</c-><c- p>()</c-> <c- o>==</c-> <c- mi>0</c-></code>. </p><p><b>17.10.4 Initializer list access [support.initlist.access]</b></p> <pre class="highlight"><c- k>constexpr</c-> <c- k>const</c-> <c- n>E</c-><c- o>*</c-> <c- nf>begin</c-><c- p>()</c-> <c- k>const</c-> <c- k>noexcept</c-><c- p>;</c->
24882488
</pre><p>1․ Returns: A pointer to the beginning of the array. If <code class="highlight"><c- n>size</c-><c- p>()</c-> <c- o>==</c-> <c- mi>0</c-></code> the values of <code class="highlight"><c- n>begin</c-><c- p>()</c-></code> and <code class="highlight"><c- n>end</c-><c- p>()</c-></code> are unspecified but they shall be identical. </p><pre class="highlight"><c- k>constexpr</c-> <c- k>const</c-> <c- n>E</c-><c- o>*</c-> <c- nf>end</c-><c- p>()</c-> <c- k>const</c-> <c- k>noexcept</c-><c- p>;</c->
24892489
</pre><p>2․ Returns: <code class="highlight"><c- n>begin</c-><c- p>()</c-> <c- o>+</c-> <c- n>size</c-><c- p>()</c-></code>. </p><pre class="highlight"><ins><c- k>constexpr</c-> <c- k>const</c-> <c- n>E</c-><c- o>*</c-> <c- nf>data</c-><c- p>()</c-> <c- k>const</c-> <c- k>noexcept</c-><c- p>;</c-></ins>

0 commit comments

Comments
 (0)