<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Issue 2253: [arrays.ts] dynarray should state which container requirements aren't met</title>
<meta property="og:title" content="Issue 2253: [arrays.ts] dynarray should state which container requirements aren't met">
<meta property="og:description" content="C++ library issue. Status: NAD Arrays">
<meta property="og:url" content="https://cplusplus.github.io/LWG/issue2253.html">
<meta property="og:type" content="website">
<meta property="og:image" content="http://cplusplus.github.io/LWG/images/cpp_logo.png">
<meta property="og:image:alt" content="C++ logo">
<style>
  p {text-align:justify}
  li {text-align:justify}
  pre code.backtick::before { content: "`" }
  pre code.backtick::after { content: "`" }
  blockquote.note
  {
    background-color:#E0E0E0;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 1px;
    padding-bottom: 1px;
  }
  ins {background-color:#A0FFA0}
  del {background-color:#FFA0A0}
  table.issues-index { border: 1px solid; border-collapse: collapse; }
  table.issues-index th { text-align: center; padding: 4px; border: 1px solid; }
  table.issues-index td { padding: 4px; border: 1px solid; }
  table.issues-index td:nth-child(1) { text-align: right; }
  table.issues-index td:nth-child(2) { text-align: left; }
  table.issues-index td:nth-child(3) { text-align: left; }
  table.issues-index td:nth-child(4) { text-align: left; }
  table.issues-index td:nth-child(5) { text-align: center; }
  table.issues-index td:nth-child(6) { text-align: center; }
  table.issues-index td:nth-child(7) { text-align: left; }
  table.issues-index td:nth-child(5) span.no-pr { color: red; }
  @media (prefers-color-scheme: dark) {
     html {
        color: #ddd;
        background-color: black;
     }
     ins {
        background-color: #225522
     }
     del {
        background-color: #662222
     }
     a {
        color: #6af
     }
     a:visited {
        color: #6af
     }
     blockquote.note
     {
        background-color: rgba(255, 255, 255, .10)
     }
  }
</style>
</head>
<body>
<hr>
<p><em>This page is a snapshot from the LWG issues list, see the <a href="lwg-active.html">Library Active Issues List</a> for more information and the meaning of <a href="lwg-active.html#NAD_Arrays">NAD Arrays</a> status.</em></p>
<h3 id="2253"><a href="lwg-closed.html#2253">2253</a>. [arrays.ts] <code>dynarray</code> should state which container requirements aren't met</h3>
<p><b>Section:</b> 99 [arrays.ts::dynarray.overview] <b>Status:</b> <a href="lwg-active.html#NAD_Arrays">NAD Arrays</a>
 <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-04-23 <b>Last modified:</b> 2016-10-31</p>
<p><b>Priority: </b>0
</p>
<p><b>View all issues with</b> <a href="lwg-status.html#NAD Arrays">NAD Arrays</a> status.</p>
<p><b>Discussion:</b></p>
<p><b>Addresses: arrays.ts</b></p>

<p>
99 [arrays.ts::dynarray.overview] p2 says:
</p>
<blockquote>
<p>
"Unless otherwise specified, all <code>dynarray</code> operations have the same requirements and semantics as specified in
99 [arrays.ts::container.requirements]."
</p>
</blockquote>
<p>
Some differences from 99 [arrays.ts::container.requirements] are not explicitly specified, including at
least the lack of a default constructor, copy assignment and <code>swap</code> member.
<p/>
The wording could be similar to 23.3.3.1 <a href="https://wg21.link/array.overview">[array.overview]</a> which says "An array satisfies all of the requirements 
of a container and of a reversible container (99 [arrays.ts::container.requirements]), except that a default constructed 
array object is not empty and that <code>swap</code> does not have constant complexity."
</p>

<p><i>[2013-09 Chicago:]</i></p>

<p>
Move to Deferred. This feature will ship after C++14 and should be revisited then.
</p>

<p><i>[2014-06-06 pre-Rapperswil]</i></p>

<p>
This issue has been reopened as arrays-ts.
</p>

<p><i>[2014-06-16 Rapperswil]</i></p>

<p>
Move to Ready
</p>

<p><i>[2014/11 Urbana]</i></p>

<p>
Held at Ready status, pending clarification of Arrays TS
</p>



<p id="res-2253"><b>Proposed resolution:</b></p>

<ol>
<li><p>Add to 99 [arrays.ts::dynarray.overview] p2:</p>
<p>
-2- <ins>A <code>dynarray</code> satisfies all of the requirements of a container and of a reversible container 
(99 [arrays.ts::container.requirements]), except for default construction, assignment and <code>swap</code>.</ins> Unless 
otherwise specified, all <code>dynarray</code> operations have the same requirements and semantics as specified in 
99 [arrays.ts::container.requirements].
</p>
</li>
</ol>






</body>
</html>
