]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::is_function compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Sun, 11 Jun 2023 04:01:39 +0000 (21:01 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Sat, 16 Dec 2023 16:59:38 +0000 (08:59 -0800)
commitcdd4387c5b6aeace2e58318691a5880d29157db9
treef3a84f6c716fd097fe8ef1b9d66c4ca27e865f71
parente86cfcaef246331ee7956dd86c156d594768fe70
libstdc++: Optimize std::is_function compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_function): Use __is_function
built-in trait.
(is_function_v): Likewise. Optimize its implementation.  Move
this under is_const_v as this depends on is_const_v.

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