gcc/libstdc++-v3/include
Jonathan Wakely 3a99fd4dbb libstdc++: make negative count safe with std::for_each_n
The Library Working Group have approved a change to std::for_each_n that
requires it to handle negative N gracefully, which we were not doing for
random access iterators.

	* include/bits/stl_algo.h (for_each_n): Handle negative count.
	* testsuite/25_algorithms/for_each/for_each_n_debug.cc: New test.

From-SVN: r277932
2019-11-07 23:10:45 +00:00
..
backward Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
bits libstdc++: make negative count safe with std::for_each_n 2019-11-07 23:10:45 +00:00
c Update copyright years. 2019-01-01 13:31:55 +01:00
c_compatibility In C++17 <math.h> should not put special functions in global namespace 2019-03-21 14:03:56 +00:00
c_global Avoid undefined behaviour in std::byte operators (LWG 2950) 2019-06-18 12:39:43 +01:00
c_std Update copyright years. 2019-01-01 13:31:55 +01:00
debug Only qualify function as constexpr for C++14 and later 2019-10-23 17:14:50 +01:00
decimal Update copyright years. 2019-01-01 13:31:55 +01:00
experimental Simplify common case of use_future_t that uses std::allocator 2019-10-24 15:39:57 +01:00
ext Remove some more using-declarations from namespace __gnu_cxx 2019-10-30 15:48:23 +00:00
parallel Avoid reserved identifier in include/parallel/multiway_merge.h 2019-10-03 14:35:35 +00:00
precompiled Partial implementation of C++20 of <ranges> header 2019-10-31 21:42:18 +00:00
pstl pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN, [...]): Define to OpenMP 5.0 pragmas even for GCC 10.0+. 2019-06-25 08:59:12 +02:00
std Implement C++20 operator<=>. 2019-11-05 18:56:18 -05:00
tr1 Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
tr2 PR libstdc++/92059 fix several bugs in tr2::dynamic_bitset 2019-10-11 16:29:55 +01:00
Makefile.am Implement C++20 operator<=>. 2019-11-05 18:56:18 -05:00
Makefile.in libstdc++: Add compare_three_way and install <compare> header 2019-11-06 17:53:38 +00:00