]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::is_const compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Wed, 22 Mar 2023 00:09:34 +0000 (17:09 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Thu, 13 Jun 2024 12:55:36 +0000 (05:55 -0700)
commiteea62ce6fbcffb8acc227e5dbed74d2b627ce84d
tree3c88b33d7b966bdea4b617ee1a8a2309b7338bc3
parent0970ff46ba6330fc80e8736fc05b2eaeeae0b6a0
libstdc++: Optimize std::is_const compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_const): Use __is_const built-in
trait.
(is_const_v): Likewise.

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