]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::is_nothrow_invocable compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Wed, 21 Feb 2024 08:49:10 +0000 (00:49 -0800)
committerKen Matsui <kmatsui@gcc.gnu.org>
Thu, 13 Jun 2024 12:57:01 +0000 (05:57 -0700)
commit3060e9230264d60be349414285c361b7d32f233c
treefcf0335be5b78a325bd7b92ba15a8921db51f376
parentdbb26feeb67d033d9dff51042044997aa5db9226
libstdc++: Optimize std::is_nothrow_invocable compilation performance

This patch optimizes the compilation performance of
std::is_nothrow_invocable by dispatching to the new
__is_nothrow_invocable built-in trait.

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_nothrow_invocable): Use
__is_nothrow_invocable built-in trait.
* testsuite/20_util/is_nothrow_invocable/incomplete_args_neg.cc:
Handle the new error from __is_nothrow_invocable.
* testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc:
Likewise.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/is_nothrow_invocable/incomplete_args_neg.cc
libstdc++-v3/testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc