gcc/libstdc++-v3/testsuite/23_containers
François Dumont 33a1e511b5 libstdc++: Make deque iterator operator- usable with value-init iterators
N3644 implies that operator- can be used on value-init iterators. We now return
0 if both iterators are value initialized. If only one is value initialized we
keep the UB by returning the result of a normal computation which is a meaningless
value.

libstdc++-v3/ChangeLog:

	PR libstdc++/70303
	* include/bits/stl_deque.h (std::deque<>::operator-(iterator, iterator)):
	Return 0 if both iterators are value-initialized.
	* testsuite/23_containers/deque/70303.cc: New test.
	* testsuite/23_containers/vector/70303.cc: New test.
2021-02-01 19:19:53 +01:00
..
array Update copyright years. 2021-01-04 10:26:59 +01:00
bitset Update copyright years. 2021-01-04 10:26:59 +01:00
deque libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00
forward_list Update copyright years. 2021-01-04 10:26:59 +01:00
headers Update copyright years. 2021-01-04 10:26:59 +01:00
list Update copyright years. 2021-01-04 10:26:59 +01:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
multimap Update copyright years. 2021-01-04 10:26:59 +01:00
multiset Update copyright years. 2021-01-04 10:26:59 +01:00
priority_queue Update copyright years. 2021-01-04 10:26:59 +01:00
queue Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
span Update copyright years. 2021-01-04 10:26:59 +01:00
stack Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators 2021-01-14 19:23:54 +01:00
unordered_multimap Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_multiset Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_set Update copyright years. 2021-01-04 10:26:59 +01:00
vector libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00