This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r262418 - in /trunk/libstdc++-v3: ChangeLog inc...


Author: redi
Date: Wed Jul  4 18:16:26 2018
New Revision: 262418

URL: https://gcc.gnu.org/viewcvs?rev=262418&root=gcc&view=rev
Log:
P0458R2 Checking for Existence of an Element in Associative Containers

	* include/bits/stl_map.h (map::contains): Add for C++2a.
	* include/bits/stl_multimap.h (multimap::contains): Likewise.
	* include/bits/stl_multiset.h (multiset::contains): Likewise.
	* include/bits/stl_set.h (set::contains): Likewise.
	* include/bits/stl_tree.h (__has_is_transparent_t): Define alias.
	(_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): Use __has_is_transparent_t.
	* include/bits/unordered_map.h (unordered_map::contains)
	(unordered_multimap::contains): Add for C++2a.
	* include/bits/unordered_set.h (unordered_set::contains)
	(unordered_multiset::contains): Likewise.
	* testsuite/23_containers/map/operations/contains.cc: New.
	* testsuite/23_containers/multimap/operations/contains.cc: New.
	* testsuite/23_containers/multiset/operations/contains.cc: New.
	* testsuite/23_containers/set/operations/contains.cc: New.
	* testsuite/23_containers/unordered_map/operations/contains.cc: New.
	* testsuite/23_containers/unordered_multimap/operations/contains.cc:
	New.
	* testsuite/23_containers/unordered_multiset/operations/contains.cc:
	New.
	* testsuite/23_containers/unordered_set/operations/contains.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/map/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/multimap/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/multiset/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/set/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_map/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/contains.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_set/operations/contains.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_map.h
    trunk/libstdc++-v3/include/bits/stl_multimap.h
    trunk/libstdc++-v3/include/bits/stl_multiset.h
    trunk/libstdc++-v3/include/bits/stl_set.h
    trunk/libstdc++-v3/include/bits/stl_tree.h
    trunk/libstdc++-v3/include/bits/unordered_map.h
    trunk/libstdc++-v3/include/bits/unordered_set.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]