//
// Copyright (C) 2008, 2009 Francesco Salvestrini
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//

#ifndef ELKLIB_LIBCXX_BITS_CHAR_TRAITS
#define ELKLIB_LIBCXX_BITS_CHAR_TRAITS

#include "elklib.h"

namespace ktl {
	struct __true_type  { };
	struct __false_type { };

	template <class I> class __is_integer {
	public:
		typedef __false_type value;
	};

	template <> class __is_integer <unsigned int> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <signed int> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <short unsigned int> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <short signed int> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <char> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <signed char> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <unsigned char> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <long unsigned int> {
	public:
		typedef __true_type value;
	};

	template <> class __is_integer <long signed int> {
	public:
		typedef __true_type value;
	};
}

#endif // ELKLIB_LIBCXX_BITS_CHAR_TRAITS
