diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-01-11 14:44:04 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-01-11 14:44:04 +0000 |
commit | b091b8dc0b9fdfe157da5a738e8cbb360143fc9e (patch) | |
tree | 968e331b6db2ff2c777d3680dcf336d9f3ed2dee /gcc/gcc.c | |
parent | a92ffb3e945608131f5edf3ec2d6d583e417083b (diff) | |
download | gcc-b091b8dc0b9fdfe157da5a738e8cbb360143fc9e.zip gcc-b091b8dc0b9fdfe157da5a738e8cbb360143fc9e.tar.gz gcc-b091b8dc0b9fdfe157da5a738e8cbb360143fc9e.tar.bz2 |
PR78273 fix count to work with partitioning function
PR libstdc++/78273
* include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
the heterogeneous comparison can only find one match.
* include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
* testsuite/23_containers/map/operations/2.cc: Test count works with
comparison function that just partitions rather than sorting.
* testsuite/23_containers/set/operations/2.cc: Likewise.
From-SVN: r244317
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions