]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use __is_invocable/nothrow_invocable builtins more
authorPatrick Palka <ppalka@redhat.com>
Fri, 16 May 2025 17:06:04 +0000 (13:06 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 16 May 2025 17:06:04 +0000 (13:06 -0400)
commit259154325688cbfe6d3b50e91dbd6b997a969d6d
treec1a82c33b50463844c985be6d956b32954b15826
parentead0a713aa6c7657b18c684aefb8fb97bd3fe017
libstdc++: Use __is_invocable/nothrow_invocable builtins more

As a follow-up to r15-1253 and r15-1254 which made us use these builtins
in the standard std::is_invocable/nothrow_invocable class templates, let's
also use them directly in the standard variable templates and our internal
C++11 __is_invocable/nothrow_invocable class templates.

libstdc++-v3/ChangeLog:

* include/std/type_traits (__is_invocable): Define in terms of
corresponding builtin if available.
(__is_nothrow_invocable): Likewise.
(is_invocable_v): Likewise.
(is_nothrow_invocable_v): Likewise.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits