]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::is_reference compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Sat, 25 Mar 2023 11:23:19 +0000 (04:23 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Sat, 16 Dec 2023 16:59:36 +0000 (08:59 -0800)
commite86cfcaef246331ee7956dd86c156d594768fe70
tree04a6f6d66e16828c65ee72dfdd653a78b804824f
parentfa454b8dd0346a1821338e2cfcf27c9cff0f1b5c
libstdc++: Optimize std::is_reference compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_reference): Use __is_reference
built-in trait.
(is_reference_v): Likewise.

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