libstdc++: Optimize std::is_member_function_pointer compilation performance
commit53f9d0cc07a0c85bf53541f79cc19730abcd17b9
authorKen Matsui <kmatsui@gcc.gnu.org>
Mon, 11 Sep 2023 15:48:31 +0000 (11 08:48 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Sat, 16 Dec 2023 16:59:34 +0000 (16 08:59 -0800)
tree42752491991caf30ffd911b5761bc8fa6ddf03b0
parentd95e54347f84e16d09f89547f836d2a05c667c57
libstdc++: Optimize std::is_member_function_pointer compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_member_function_pointer): Use
__is_member_function_pointer built-in trait.
(is_member_function_pointer_v): Likewise.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits