diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-01-20 11:50:58 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-01-20 11:50:58 +0000 |
commit | 91c78ea5b6532c06298ffb6483a25ee573a52ed0 (patch) | |
tree | a4ea5df9a398d561ff18a5b12f7be17188e80153 /gcc | |
parent | 71a16cd8bcb8d112a2a1db544b7f3aa9cfea67f8 (diff) | |
download | gcc-91c78ea5b6532c06298ffb6483a25ee573a52ed0.zip gcc-91c78ea5b6532c06298ffb6483a25ee573a52ed0.tar.gz gcc-91c78ea5b6532c06298ffb6483a25ee573a52ed0.tar.bz2 |
Implement N3657: heterogeneous lookup in associative containers.
* include/bits/stl_map.h (map::find<>, map::count<>,
map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
member function templates to perform heterogeneous lookup.
* include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
multimap::lower_bound<>, multimap::upper_bound<>,
multimap::equal_range<>): Likewise.
* include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
multiset::lower_bound<>, multiset::upper_bound<>,
multiset::equal_range<>): Likewise.
* include/bits/stl_set.h (set::find<>, set::count<>,
set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
* include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
_Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
_Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
_Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
* testsuite/23_containers/map/operations/2.cc: New.
* testsuite/23_containers/multimap/operations/2.cc: New.
* testsuite/23_containers/multiset/operations/2.cc: New.
* testsuite/23_containers/set/operations/2.cc: New.
From-SVN: r219888
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions