gcc/libstdc++-v3/include
Jonathan Wakely 9af65c2b90 libstdc++: Reduce uses of std::numeric_limits
This avoids unnecessary instantiations of std::numeric_limits or
inclusion of <limits> when a more lightweight alternative would work.
Some uses can be replaced with __gnu_cxx::__int_traits and some can just
use size_t(-1) directly where SIZE_MAX is needed.

libstdc++-v3/ChangeLog:

	* include/bits/regex.h: Use __int_traits<int> instead of
	std::numeric_limits<int>.
	* include/bits/uniform_int_dist.h: Use __int_traits<T>::__max
	instead of std::numeric_limits<T>::max().
	* include/bits/hashtable_policy.h: Use size_t(-1) instead of
	std::numeric_limits<size_t>::max().
	* include/std/regex: Include <ext/numeric_traits.h>.
	* include/std/string_view: Use typedef for __int_traits<int>.
	* src/c++11/hashtable_c++0x.cc: Use size_t(-1) instead of
	std::numeric_limits<size_t>::max().
	* testsuite/std/ranges/iota/96042.cc: Include <limits>.
	* testsuite/std/ranges/iota/difference_type.cc: Likewise.
	* testsuite/std/ranges/subrange/96042.cc: Likewise.
2020-10-06 00:05:11 +01:00
..
backward libstdc++: Add deprecated attributes to old iostream members 2020-08-19 12:13:23 +01:00
bits libstdc++: Reduce uses of std::numeric_limits 2020-10-06 00:05:11 +01:00
c
c_compatibility
c_global libstdc++: Add parentheses around assignments used as truth values 2020-09-10 17:09:16 +01:00
c_std
debug libstdc++: Make self-move well-defined for containers [PR 85828] 2020-08-12 20:36:00 +01:00
decimal
experimental libstdc++: Introduce new headers for C++20 ranges components 2020-09-22 15:45:54 +01:00
ext libstdc++: Make allocators throw bad_array_new_length on overflow [LWG 3190] 2020-10-05 15:18:56 +01:00
parallel libstdc++: Add compile-time checks to__glibcxx_assert [PR 71960] 2020-09-01 20:52:26 +01:00
precompiled
pstl
std libstdc++: Reduce uses of std::numeric_limits 2020-10-06 00:05:11 +01:00
tr1
tr2
Makefile.am libstdc++: Introduce new headers for C++20 ranges components 2020-09-22 15:45:54 +01:00
Makefile.in libstdc++: Introduce new headers for C++20 ranges components 2020-09-22 15:45:54 +01:00