libostd/ostd/types.hh

35 lines
592 B
C++
Raw Normal View History

2015-06-07 23:55:08 +00:00
/* Core type aliases for OctaSTD.
2015-04-13 21:25:31 +00:00
*
* This file is part of OctaSTD. See COPYING.md for futher information.
*/
2015-07-13 19:08:55 +00:00
#ifndef OSTD_TYPES_HH
#define OSTD_TYPES_HH
2015-04-13 21:25:31 +00:00
#include <stdint.h>
2017-01-30 18:19:09 +00:00
#include <cstddef>
2015-04-13 21:25:31 +00:00
2015-07-13 19:07:14 +00:00
namespace ostd {
2015-04-13 21:25:31 +00:00
/* "builtin" types */
using sbyte = signed char;
using byte = unsigned char;
2015-06-07 23:55:08 +00:00
using ushort = unsigned short;
using uint = unsigned int;
using ulong = unsigned long;
using ullong = unsigned long long;
using llong = long long;
2015-04-14 00:12:00 +00:00
2015-06-07 23:55:08 +00:00
using ldouble = long double;
2015-06-03 22:01:23 +00:00
2016-01-19 19:14:02 +00:00
/* used occasionally for template variables */
namespace detail {
2017-02-16 19:39:05 +00:00
template<typename> struct undef_t;
2016-01-19 19:14:02 +00:00
}
}
2015-04-24 17:51:35 +00:00
2016-02-07 21:17:15 +00:00
#endif