[llvm-bugs] [Bug 30959] New: Heterogeneous lookup for unique-key associative containers should not be unique
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 9 02:58:16 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=30959
Bug ID: 30959
Summary: Heterogeneous lookup for unique-key associative
containers should not be unique
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: rs2740 at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
It's valid for the heterogeneous version of {map,set}::{equal_range,count} to
be called with something that compares equivalent to more than one key in the
container; the only requirement is that the keys of the elements be suitably
partitioned with respect to the heterogeneous key. (The motivating example in
N3465 is about finding the range for with a particular family name in a
set<name_entry>.) Thus, these versions cannot call
__{equal_range,count}_unique.
See http://stackoverflow.com/q/40504836/2756719.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161109/d5d921ae/attachment.html>
More information about the llvm-bugs
mailing list