libstdc++: Add specializations for some variable templates
authorJonathan Wakely <jwakely@redhat.com>
Thu, 1 Sep 2022 11:32:09 +0000 (12:32 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 1 Sep 2022 19:31:00 +0000 (20:31 +0100)
commit33005a4be49466880fe3f5a9317bccc8c1ed423b
treecb0cda5fb50c540387592f44f49e3b7920191aa1
parentcd20d9482a1f10ddf1c398c1a1d8421f97dfdefa
libstdc++: Add specializations for some variable templates

This avoids having to instantiate a class template when we can detect
the true cases easily with a partial specialization.

libstdc++-v3/ChangeLog:

* include/std/type_traits (is_lvalue_reference_v)
(is_rvalue_reference_v, is_reference_v, is_const_v)
(is_volatile_v): Define using partial specializations instead
of instantiating class templates.
libstdc++-v3/include/std/type_traits