1
/* Copyright (C) 2005 Garrett A. Kajmowicz
3
This file is part of the uClibc++ Library.
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#include <basic_definitions>
23
#include <char_traits>
25
#ifndef __HEADER_TYPE_TRAITS
26
#define __HEADER_TYPE_TRAITS 1
28
#pragma GCC visibility push(default)
32
struct _UCXXEXPORT __true_type{};
33
struct _UCXXEXPORT __false_type{};
35
template <class I> class _UCXXEXPORT __is_integer{
37
typedef __false_type value;
40
template <> class _UCXXEXPORT __is_integer <unsigned int>{
42
typedef __true_type value;
45
template <> class _UCXXEXPORT __is_integer <signed int>{
47
typedef __true_type value;
50
template <> class _UCXXEXPORT __is_integer <short unsigned int>{
52
typedef __true_type value;
55
template <> class _UCXXEXPORT __is_integer <short signed int>{
57
typedef __true_type value;
60
template <> class _UCXXEXPORT __is_integer <char>{
62
typedef __true_type value;
65
template <> class _UCXXEXPORT __is_integer <signed char>{
67
typedef __true_type value;
70
template <> class _UCXXEXPORT __is_integer <unsigned char>{
72
typedef __true_type value;
75
template <> class _UCXXEXPORT __is_integer <long unsigned int>{
77
typedef __true_type value;
80
template <> class _UCXXEXPORT __is_integer <long signed int>{
82
typedef __true_type value;
89
#pragma GCC visibility pop