aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-10-27 17:43:33 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-10-27 17:43:33 -0400
commit2b08f2c561e0dc9b8f569a00868a6b7eb2ba111b (patch)
treef2bb18bbab464000b24772c45a3ad35f319b284b /libstdc++-v3/include
parent81f0bab25ec7d17b84e94ee7322aa953a75584a7 (diff)
downloadgcc-2b08f2c561e0dc9b8f569a00868a6b7eb2ba111b.zip
gcc-2b08f2c561e0dc9b8f569a00868a6b7eb2ba111b.tar.gz
gcc-2b08f2c561e0dc9b8f569a00868a6b7eb2ba111b.tar.bz2
c-common.c (c_common_reswords): Add __is_literal_type.
gcc/c-family/ * c-common.c (c_common_reswords): Add __is_literal_type. * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. gcc/cp/ * cp-tree.h (cp_trait_kind): Add CPTK_IS_LITERAL_TYPE. * cxx-pretty-print.c (pp_cxx_trait_expression): Handle it. * semantics.c (trait_expr_value, finish_trait_expr): Likewise. * parser.c (cp_parser_primary_expression): Handle RID_IS_LITERAL_TYPE. (cp_parser_trait_expr): Likewise. libstdc++-v3/ * include/std/type_traits (is_literal_type): New. From-SVN: r166020
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/std/type_traits6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits
index cde741e..a5a62d6 100644
--- a/libstdc++-v3/include/std/type_traits
+++ b/libstdc++-v3/include/std/type_traits
@@ -192,6 +192,12 @@ namespace std
: public integral_constant<bool, __is_pod(_Tp)>
{ };
+ /// is_literal_type
+ template<typename _Tp>
+ struct is_literal_type
+ : public integral_constant<bool, __is_literal_type(_Tp)>
+ { };
+
template<typename _Tp>
typename add_rvalue_reference<_Tp>::type declval() noexcept;