]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/std/type_traits
libstdc++: Optimize std::is_member_pointer compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Tue, 12 Sep 2023 03:35:53 +0000 (20:35 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Sat, 16 Dec 2023 16:59:33 +0000 (08:59 -0800)
commitd95e54347f84e16d09f89547f836d2a05c667c57
tree4deaf39689180984c51128e4e25d6b612cb1be85
parent4a235f8eb0f19292c007c4374d6b48ab01667a3b
libstdc++: Optimize std::is_member_pointer compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_member_pointer): Use
__is_member_pointer built-in trait.
(is_member_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