Fix return type of heterogeneous find for sets
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Nov 2015 15:12:24 +0000 (15:12 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Nov 2015 15:12:24 +0000 (15:12 +0000)
commitd4a9dffbaaf1e53648ee102a93bdcb3edb2f137e
treeb84f006d2d7debf0194132d55b158fdf3da30136
parent60baa1883c96c6a06e933dc72ec041c0d03069b8
Fix return type of heterogeneous find for sets

PR libstdc++/68190
* include/bits/stl_multiset.h (multiset::find): Fix return types.
* include/bits/stl_set.h (set::find): Likewise.
* testsuite/23_containers/map/operations/2.cc: Test find return types.
* testsuite/23_containers/multimap/operations/2.cc: Likewise.
* testsuite/23_containers/multiset/operations/2.cc: Likewise.
* testsuite/23_containers/set/operations/2.cc: Likewise.

From-SVN: r230113
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h
libstdc++-v3/testsuite/23_containers/map/operations/2.cc
libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc
libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc
libstdc++-v3/testsuite/23_containers/set/operations/2.cc