This patch series implements P1317R2, Remove return type deduction in
std::apply,
first two patches expand the __unpack_std_tuple machinery to all tuple
like objects:
* 1/3 covers pair, complex, array, i.e. types for which get is noexcept
* 2/3 covers subrange and handle throwing get
* 3/3 defines apply_result, is_applicable in terms of above, and updates
std::apply
I crated also patch that merges __is_tuple_like struct from <type_traits>
and __is_tuple_like_v. While all test also passed, I am concerned with
it impact (the former is used at constrain to swap), and will post it as
follow-up.
If set of tuple_like will be expanded to cover some user defined types,
in that case we can provide another partial specialization constrained
on the tuple_like concept. This can be in stl_pair or other header, if
we will still depend on tuple_size, tuple_element or any other type
defined in standard.
Tested on powerp64 and x86_64-linux. OK for trunk?