gcc/libstdc++-v3/include/debug
François Dumont c3c6c30779 libstdc++: [_GLIBCXX_DEBUG] Remove useless constructor checks
Creating a safe iterator from a normal iterator is done within the library where we
already know that it is done correctly. The rare situation where a user would use safe
iterators for his own purpose is non-Standard code so outside _GLIBCXX_DEBUG scope. For
those reasons the __msg_init_singular is useless and can be removed.

Additionally in the copy constructor used for post-increment and post-decrement operators
the __msg_init_copy_singular check can also be ommitted because of the preliminary
__msg_bad_incr and __msg_bad_decr checks.

libstdc++-v3/ChangeLog:

	* include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
	(_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
	(_Safe_iterator::operator++(int)): Use latter.
	(_Safe_iterator::operator--(int)): Likewise.
	(_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
	check.
	* include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
	New.
	(_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
	(_Safe_local_iterator::operator++(int)): Use latter.
	* src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
	entry associated to the array entry.
2023-01-23 19:11:54 +01:00
..
array Update copyright years. 2023-01-16 11:52:17 +01:00
assertions.h Update copyright years. 2023-01-16 11:52:17 +01:00
bitset Update copyright years. 2023-01-16 11:52:17 +01:00
debug.h Update copyright years. 2023-01-16 11:52:17 +01:00
deque Update copyright years. 2023-01-16 11:52:17 +01:00
formatter.h Update copyright years. 2023-01-16 11:52:17 +01:00
forward_list Update copyright years. 2023-01-16 11:52:17 +01:00
functions.h Update copyright years. 2023-01-16 11:52:17 +01:00
helper_functions.h Update copyright years. 2023-01-16 11:52:17 +01:00
list Update copyright years. 2023-01-16 11:52:17 +01:00
macros.h Update copyright years. 2023-01-16 11:52:17 +01:00
map Update copyright years. 2023-01-16 11:52:17 +01:00
map.h Update copyright years. 2023-01-16 11:52:17 +01:00
multimap.h Update copyright years. 2023-01-16 11:52:17 +01:00
multiset.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_base.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_container.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_iterator.h libstdc++: [_GLIBCXX_DEBUG] Remove useless constructor checks 2023-01-23 19:11:54 +01:00
safe_iterator.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
safe_local_iterator.h libstdc++: [_GLIBCXX_DEBUG] Remove useless constructor checks 2023-01-23 19:11:54 +01:00
safe_local_iterator.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
safe_sequence.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_sequence.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
safe_unordered_base.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_unordered_container.h Update copyright years. 2023-01-16 11:52:17 +01:00
safe_unordered_container.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
set Update copyright years. 2023-01-16 11:52:17 +01:00
set.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_iterator.h Update copyright years. 2023-01-16 11:52:17 +01:00
string Update copyright years. 2023-01-16 11:52:17 +01:00
unordered_map Update copyright years. 2023-01-16 11:52:17 +01:00
unordered_set Update copyright years. 2023-01-16 11:52:17 +01:00
vector Update copyright years. 2023-01-16 11:52:17 +01:00