<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - std::set/std::map don't support heterogeneous lookup for count()"
href="http://llvm.org/bugs/show_bug.cgi?id=20740">20740</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>std::set/std::map don't support heterogeneous lookup for count()
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jvp4846@g.rit.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>N3657[1] adds heterogeneous lookup of keys in (ordered) associative containers,
and libc++ added support for this last year[2][3]. However, it looks like
heterogenous count() never got added, although the other member functions all
look like they're present. A quick glance over the __tree implementation
suggests that all that's necessary to support this is adding the appropriate
overloads to the associative containers that forward on to __count_unique and
__count_multi, but I could be wrong as I haven't actually tried it.
I'm happy to write a patch if no one else has the time/inclination to do so.
[1] <a href="http://www.open-std.org/JTC1/sc22/WG21/docs/papers/2013/n3657.htm">http://www.open-std.org/JTC1/sc22/WG21/docs/papers/2013/n3657.htm</a>
[2] <a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=188241">http://llvm.org/viewvc/llvm-project?view=revision&revision=188241</a>
[3] <a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=188320">http://llvm.org/viewvc/llvm-project?view=revision&revision=188320</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>