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

fdumont@gcc.gnu.org fdumont@gcc.gnu.org
Fri Oct 4 20:22:00 GMT 2019


Author: fdumont
Date: Fri Oct  4 20:22:11 2019
New Revision: 276600

URL: https://gcc.gnu.org/viewcvs?rev=276600&root=gcc&view=rev
Log:
Improve _GLIBCXX_DEBUG safe iterator range size computation.

	* include/debug/forward_list
	(_Sequence_traits<__debug::forward_list<>>::_S_size): Returns __dp_sign
	distance when not empty.
	* include/debug/list (_Sequence_traits<__debug::list<>>::_S_size):
	Likewise.
	* include/debug/helper_functions.h (__dp_sign_max_size): New
	_Distance_precision enum entry.
	(__valid_range_aux(_IIte, _IIte, _Distance_traits<>::__type,
	__false_type)): Adapt.
	* include/debug/safe_iterator.tcc
	(_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator&)): Review
	distance computation.


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/debug/forward_list
    trunk/libstdc++-v3/include/debug/helper_functions.h
    trunk/libstdc++-v3/include/debug/list
    trunk/libstdc++-v3/include/debug/safe_iterator.tcc



More information about the Libstdc++-cvs mailing list