8sa1-gcc/libstdc++-v3/testsuite
Jonathan Wakely 6fd4b25b50 Add noexcept-specifier to std::apply and std::make_from_tuple
When unpacking a std::tuple we know that the std::get calls are
noexcept, so only the invocation (for std::apply) and construction (for
std::make_from_tuple) can throw.

We also know the std::get calls won't throw for a std::array, but this
patch doesn't specialize the variable template for std::array. For an
arbitrary tuple-like type we don't know if the std::get calls will
throw, and so just use a potentially-throwing noexcept-specifier.

	* include/std/tuple (__unpack_std_tuple): New variable template and
	partial specializations.
	(apply, make_from_tuple): Add noexcept-specifier.
	* testsuite/20_util/tuple/apply/2.cc: New test.
	* testsuite/20_util/tuple/make_from_tuple/2.cc: New test.

From-SVN: r274312
2019-08-12 15:54:12 +01:00
..
17_intro
18_support PR libstdc++/51333 Define recursive_init_error constructor non-inline 2019-07-29 15:27:19 +01:00
19_diagnostics
20_util Add noexcept-specifier to std::apply and std::make_from_tuple 2019-08-12 15:54:12 +01:00
21_strings
22_locale
23_containers P0325R4 to_array from LFTS with updates 2019-08-08 11:18:53 +01:00
24_iterators
25_algorithms Implement C++20 p0202 - Add Constexpr Modifiers to Functions in <algorithm> and <utility> Headers. 2019-08-01 15:25:42 +00:00
26_numerics Specialize std::numbers constants for __float128 2019-08-06 16:57:51 +01:00
27_io
28_regex
29_atomics Fix inaccurate comment in new test 2019-07-12 16:45:16 +01:00
30_threads
abi
backward
config
data
decimal
experimental
ext skip Cholesky decomposition in is>>n_mv_dist 2019-08-09 09:20:58 +00:00
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
tr1
tr2
util 2019-07-26 François Dumont <fdumont@gcc.gnu.org> 2019-07-26 05:05:48 +00:00
Makefile.am
Makefile.in