gcc/libstdc++-v3/include/bits
Jonathan Wakely 568eb2d25c libstdc++: Define C++26 saturation arithmetic functions (P0543R3)
This was approved for C++26 last week at the WG21 meeting in Kona.

libstdc++-v3/ChangeLog:

	* include/Makefile.am: Add new header.
	* include/Makefile.in: Regenerate.
	* include/bits/version.def (saturation_arithmetic): Define.
	* include/bits/version.h: Regenerate.
	* include/std/numeric: Include new header.
	* include/bits/sat_arith.h: New file.
	* testsuite/26_numerics/saturation/add.cc: New test.
	* testsuite/26_numerics/saturation/cast.cc: New test.
	* testsuite/26_numerics/saturation/div.cc: New test.
	* testsuite/26_numerics/saturation/mul.cc: New test.
	* testsuite/26_numerics/saturation/sub.cc: New test.
	* testsuite/26_numerics/saturation/version.cc: New test.
2023-11-17 15:28:30 +00:00
..
algorithmfwd.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
align.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
alloc_traits.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
allocated_ptr.h Update copyright years. 2023-01-16 11:52:17 +01:00
allocator.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
atomic_base.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
atomic_futex.h Update copyright years. 2023-01-16 11:52:17 +01:00
atomic_timed_wait.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
atomic_wait.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
basic_ios.h libstdc++: Enforce value_type consistency in strings and streams 2023-05-11 21:15:22 +01:00
basic_ios.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
basic_string.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
basic_string.tcc libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
boost_concept_check.h Update copyright years. 2023-01-16 11:52:17 +01:00
c++0x_warning.h Update copyright years. 2023-01-16 11:52:17 +01:00
c++config libstdc++: Define _GLIBCXX_USE_BUILTIN_TRAIT 2023-09-11 08:11:24 -07:00
char_traits.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
charconv.h Update copyright years. 2023-01-16 11:52:17 +01:00
chrono.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
chrono_io.h libstdc++: Fix Doxygen markup 2023-11-17 14:27:50 +00:00
codecvt.h Update copyright years. 2023-01-16 11:52:17 +01:00
concept_check.h Update copyright years. 2023-01-16 11:52:17 +01:00
cow_string.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
cpp_type_traits.h Update copyright years. 2023-01-16 11:52:17 +01:00
deque.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
enable_special_members.h Update copyright years. 2023-01-16 11:52:17 +01:00
erase_if.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
forward_list.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
forward_list.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
fs_dir.h libstdc++: Fix formatting of filesystem directory iterators 2023-10-21 11:54:00 +01:00
fs_fwd.h Update copyright years. 2023-01-16 11:52:17 +01:00
fs_ops.h libstdc++: Fix uses of non-reserved names in headers 2023-02-16 10:24:45 +00:00
fs_path.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
fstream.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
functexcept.h Add cold attribute to throw wrappers and terminate 2023-06-28 11:47:11 +02:00
functional_hash.h Update copyright years. 2023-01-16 11:52:17 +01:00
gslice.h Update copyright years. 2023-01-16 11:52:17 +01:00
gslice_array.h libstdc++: Reduce Doxygen output for PDF 2023-04-27 11:28:39 +01:00
hashtable.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
hashtable_policy.h libstdc++: [_Hashtable] Use RAII type to manage rehash functor state 2023-11-09 19:16:35 +01:00
indirect_array.h libstdc++: Reduce Doxygen output for PDF 2023-04-27 11:28:39 +01:00
invoke.h Update copyright years. 2023-01-16 11:52:17 +01:00
ios_base.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
istream.tcc libstdc++: Do not use facets cached in ios for ATL128 build [PR103387] 2023-03-28 23:51:47 +01:00
iterator_concepts.h libstdc++: Simplify C++20 poison pill overloads (P2602R2) 2023-09-07 08:08:12 +01:00
list.tcc libstdc++: Fix a -Wsign-compare warning in std::list 2023-08-09 15:19:16 +01:00
locale_classes.h Update copyright years. 2023-01-16 11:52:17 +01:00
locale_classes.tcc libstdc++: Do not assume existence of char8_t codecvt facet 2023-06-06 12:43:47 +01:00
locale_conv.h Update copyright years. 2023-01-16 11:52:17 +01:00
locale_facets.h Update copyright years. 2023-01-16 11:52:17 +01:00
locale_facets.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
locale_facets_nonio.h Update copyright years. 2023-01-16 11:52:17 +01:00
locale_facets_nonio.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
localefwd.h Update copyright years. 2023-01-16 11:52:17 +01:00
mask_array.h libstdc++: Reduce Doxygen output for PDF 2023-04-27 11:28:39 +01:00
max_size_type.h libstdc++: Fix __max_diff_type::operator>>= for negative values 2023-04-24 13:39:54 -04:00
memory_resource.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
memoryfwd.h libstdc++: declare std::allocator in !HOSTED as an extension 2023-11-10 00:10:51 +01:00
mofunc_impl.h libstdc++: Fix typos in doxygen comments 2023-04-27 11:28:40 +01:00
move.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
move_only_function.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
new_allocator.h libstdc++: Explicitly default some copy ctors and assignments 2023-08-09 15:19:15 +01:00
node_handle.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
ostream.tcc libstdc++: Do not use facets cached in ios for ATL128 build [PR103387] 2023-03-28 23:51:47 +01:00
ostream_insert.h Update copyright years. 2023-01-16 11:52:17 +01:00
out_ptr.h libstdc++: Add more Doxygen comments and another test for std::out_ptr 2023-11-17 14:46:30 +00:00
parse_numbers.h Update copyright years. 2023-01-16 11:52:17 +01:00
postypes.h Update copyright years. 2023-01-16 11:52:17 +01:00
predefined_ops.h Update copyright years. 2023-01-16 11:52:17 +01:00
ptr_traits.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
quoted_string.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
random.h libstdc++: Stop using _GLIBCXX_USE_C99_MATH_TR1 in <cmath> 2023-05-31 21:01:16 +01:00
random.tcc libstdc++: Stop using _GLIBCXX_USE_C99_MATH_TR1 in <cmath> 2023-05-31 21:01:16 +01:00
range_access.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
ranges_algo.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
ranges_algobase.h Update copyright years. 2023-01-16 11:52:17 +01:00
ranges_base.h libstdc++: Simplify C++20 poison pill overloads (P2602R2) 2023-09-07 08:08:12 +01:00
ranges_cmp.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
ranges_uninitialized.h Update copyright years. 2023-01-16 11:52:17 +01:00
ranges_util.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
refwrap.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex.h libstdc++: Implement P2770R0 changes to join_view / join_with_view 2023-08-17 12:56:32 -04:00
regex.tcc libstdc++: Minor fixes to doxygen comments 2023-04-28 13:05:51 +01:00
regex_automaton.h libstdc++: Fix uses of non-reserved names in headers 2023-02-16 10:24:45 +00:00
regex_automaton.tcc libstdc++: Fix uses of non-reserved names in headers 2023-02-16 10:24:45 +00:00
regex_compiler.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex_compiler.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
regex_constants.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex_error.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex_executor.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex_executor.tcc libstdc++: Fix some -Wunused-parameter warnings 2023-08-09 15:19:15 +01:00
regex_scanner.h Update copyright years. 2023-01-16 11:52:17 +01:00
regex_scanner.tcc libstdc++: Fix uses of non-reserved names in headers 2023-02-16 10:24:45 +00:00
requires_hosted.h libstdc++: Mark headers that must be hosted as such [PR103626] 2022-10-03 15:43:48 +01:00
sat_arith.h libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
semaphore_base.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
shared_ptr.h libstdc++: Implement std::out_ptr and std::inout_ptr for C++23 [PR111667] 2023-11-16 08:10:26 +00:00
shared_ptr_atomic.h libstdc++: Implement std::out_ptr and std::inout_ptr for C++23 [PR111667] 2023-11-16 08:10:26 +00:00
shared_ptr_base.h libstdc++: Implement std::out_ptr and std::inout_ptr for C++23 [PR111667] 2023-11-16 08:10:26 +00:00
slice_array.h libstdc++: Reduce Doxygen output for PDF 2023-04-27 11:28:39 +01:00
specfun.h libstdc++: Replace all manual FTM definitions and use 2023-08-16 15:16:25 +02:00
sstream.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
std_abs.h libstdc++: Fix std::abs(__float128) for -NaN and -0.0 [PR109758] 2023-05-11 12:16:21 +01:00
std_function.h Update copyright years. 2023-01-16 11:52:17 +01:00
std_mutex.h libstdc++: Add [[nodiscard]] to lock types 2023-11-11 00:41:08 +00:00
std_thread.h link pthread_join from std::thread ctor 2023-03-03 16:06:44 -03:00
stl_algo.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_algobase.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_bvector.h Revert "libstdc++: bvector: undef always_inline macro" 2023-11-15 01:45:58 -03:00
stl_construct.h libstdc++: Qualify calls to std::_Destroy and _Destroy_aux 2023-07-04 00:05:53 +01:00
stl_deque.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_function.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_heap.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_iterator.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_iterator_base_funcs.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_iterator_base_types.h libstdc++: Use alias template for iterator_category [PR110970] 2023-08-10 23:31:37 +01:00
stl_list.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_map.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_multimap.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
stl_multiset.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
stl_numeric.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_pair.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_queue.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_raw_storage_iter.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_relops.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_set.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
stl_stack.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_tempbuf.h Update copyright years. 2023-01-16 11:52:17 +01:00
stl_tree.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_uninitialized.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stl_vector.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
stream_iterator.h libstdc++: Make std::istream_iterator copy ctor constexpr (LWG 3600) 2023-03-22 17:48:19 +00:00
streambuf.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
streambuf_iterator.h libstdc++: Fix some -Wunused-parameter warnings 2023-08-09 15:19:15 +01:00
string_view.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
stringfwd.h Update copyright years. 2023-01-16 11:52:17 +01:00
this_thread_sleep.h Update copyright years. 2023-01-16 11:52:17 +01:00
uniform_int_dist.h libstdc++: Improve doxygen docs for <random> 2023-04-28 13:05:51 +01:00
unique_lock.h libstdc++: Add [[nodiscard]] to lock types 2023-11-11 00:41:08 +00:00
unique_ptr.h libstdc++: Implement std::out_ptr and std::inout_ptr for C++23 [PR111667] 2023-11-16 08:10:26 +00:00
unordered_map.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
unordered_set.h libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-27 11:28:39 +01:00
uses_allocator.h libstdc++: Fix some -Wunused-parameter warnings 2023-08-09 15:19:15 +01:00
uses_allocator_args.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
utility.h libstdc++: Only declare feature test macros in standard headers 2023-11-16 08:10:19 +00:00
valarray_after.h Update copyright years. 2023-01-16 11:52:17 +01:00
valarray_array.h Update copyright years. 2023-01-16 11:52:17 +01:00
valarray_array.tcc Update copyright years. 2023-01-16 11:52:17 +01:00
valarray_before.h Update copyright years. 2023-01-16 11:52:17 +01:00
vector.tcc libstdc++: fix memory clobbering in std::vector [PR110879] 2023-09-01 16:01:23 +01:00
version.def libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
version.h libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
version.tpl libstdc++: Implement more maintainable <version> header 2023-08-16 15:16:25 +02:00