libstdc++: Use _GLIBCXX_USE_BUILTIN_TRAIT
commitf151db0f0ea48c2624baf258dca7ae232896ebf4
authorKen Matsui <kmatsui@gcc.gnu.org>
Mon, 11 Sep 2023 15:21:50 +0000 (11 08:21 -0700)
committerKen Matsui <kmatsui@gcc.gnu.org>
Fri, 5 Jan 2024 00:16:54 +0000 (4 16:16 -0800)
treeaca4a519baa3c6afb3f8e52b117f0dc91ef651c6
parent3ab4c3816bd5c340b98147ffce13a7f3c161b6cd
libstdc++: Use _GLIBCXX_USE_BUILTIN_TRAIT

This patch uses _GLIBCXX_USE_BUILTIN_TRAIT macro instead of __has_builtin
in the type_traits header for traits that have a corresponding fallback
non-built-in implementation.  This macro supports to toggle the use of
built-in traits in the type_traits header through
_GLIBCXX_DO_NOT_USE_BUILTIN_TRAITS macro, without needing to modify the
source code.

libstdc++-v3/ChangeLog:

* include/std/type_traits: Use _GLIBCXX_USE_BUILTIN_TRAIT.

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