C++タイプ
諏訪子 <suwako@076.moe>、2026-05-04 15:37
コミット a33f58ad9b13e0863026325643536daa0a033346
・ファイルを見る
1個のファイル、+21 -0
追加
types.hh
| @@ -0,0 +1,21 @@ | ||
| 1 | +#pragma once | |
| 2 | + | |
| 3 | +#include <cstdint> | |
| 4 | +#include <string> | |
| 5 | +#include <vector> | |
| 6 | + | |
| 7 | +typedef uint8_t u8; | |
| 8 | +typedef uint16_t u16; | |
| 9 | +typedef uint32_t u32; | |
| 10 | +typedef uint64_t u64; | |
| 11 | + | |
| 12 | +typedef int8_t i8; | |
| 13 | +typedef int16_t i16; | |
| 14 | +typedef int32_t i32; | |
| 15 | +typedef int64_t i64; | |
| 16 | + | |
| 17 | +typedef const char * cstr; | |
| 18 | +typedef void * any; | |
| 19 | + | |
| 20 | +using std::string; | |
| 21 | +using std::vector; |