<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Issue 2300: [CD] Redundant sections for map and multimap members should be removed</title>
<meta property="og:title" content="Issue 2300: [CD] Redundant sections for map and multimap members should be removed">
<meta property="og:description" content="C++ library issue. Status: C++14">
<meta property="og:url" content="https://cplusplus.github.io/LWG/issue2300.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#C++14">C++14</a> status.</em></p>
<h3 id="2300"><a href="lwg-defects.html#2300">2300</a>. [CD] Redundant sections for <code>map</code> and <code>multimap</code> members should be removed</h3>
<p><b>Section:</b> 23.4.3 <a href="https://wg21.link/map">[map]</a>, 23.4.4 <a href="https://wg21.link/multimap">[multimap]</a> <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
 <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-25 <b>Last modified:</b> 2017-06-15</p>
<p><b>Priority: </b>Not Prioritized
</p>
<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
<p><b>Discussion:</b></p>
<p><b>Addresses ES 17</b></p>

<p>
Sections are redundant with general associative container requirements at 23.2.7 <a href="https://wg21.link/associative.reqmts">[associative.reqmts]</a>, Table 102. 
<p/>
Suggested action:     
<p/>
Delete sections.
</p>

<p><i>[2013-09-25 Daniel provides resolution suggestion]</i></p>


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

<p>
Daniel's wording is good, move to Immediate to resolve NB comment.
</p>

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

<p>
Accept for Working Paper
</p>



<p id="res-2300"><b>Proposed resolution:</b></p>
<p>This wording is relative to N3691.</p>

<ol>
<li><p>Change the header <code>&lt;map&gt;</code> synopsis, 23.4.3.1 <a href="https://wg21.link/map.overview">[map.overview]</a> p2 as indicated:</p>

<blockquote><pre>
// <del>23.4.4.5,</del> map operations:
iterator find(const key_type&amp; x);
const_iterator find(const key_type&amp; x) const;
template &lt;class K&gt; iterator find(const K&amp; x);
template &lt;class K&gt; const_iterator find(const K&amp; x) const;
</pre>
</blockquote>
</li>

<li><p>Delete the complete sub-clause  [map.ops]:</p>

<p>
<del>23.4.4.5 map operations [map.ops]</del>
</p>
<blockquote><pre>
<del>iterator find(const key_type&amp; x);
const_iterator find(const key_type&amp; x) const;
iterator lower_bound(const key_type&amp; x);
const_iterator lower_bound(const key_type&amp; x) const;
iterator upper_bound(const key_type&amp; x);
const_iterator upper_bound(const key_type &amp;x) const;
pair&lt;iterator, iterator&gt;
  equal_range(const key_type &amp;x);
pair&lt;const_iterator, const_iterator&gt;
  equal_range(const key_type&amp; x) const;</del>
</pre><blockquote>
<p>
<del>-1- The <code>find</code>, <code>lower_bound</code>, <code>upper_bound</code> and <code>equal_range</code> member functions each have two versions,
one const and the other non-const. In each case the behavior of the two functions is identical except
that the const version returns a <code>const_iterator</code> and the non-const version an <code>iterator</code> (23.2.4).</del>
</p>
</blockquote></blockquote>
</li>

<li><p>Delete the complete sub-clause  [multimap.ops]:</p>

<p>
<del>23.4.5.4 multimap operations [multimap.ops]</del>
</p>
<blockquote><pre>
<del>iterator find(const key_type &amp;x);
const_iterator find(const key_type&amp; x) const;

iterator lower_bound(const key_type&amp; x);
const_iterator lower_bound(const key_type&amp; x) const;

pair&lt;iterator, iterator&gt;
  equal_range(const key_type &amp;x);
pair&lt;const_iterator, const_iterator&gt;
  equal_range(const key_type&amp; x) const;</del>
</pre><blockquote>
<p>
<del>-1- The <code>find</code>, <code>lower_bound</code>, <code>upper_bound</code> and <code>equal_range</code> member functions each have two versions,
one const and one non-const. In each case the behavior of the two versions is identical except
that the const version returns a <code>const_iterator</code> and the non-const version an <code>iterator</code> (23.2.4).</del>
</p>
</blockquote></blockquote>
</li>

</ol>





</body>
</html>
