diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-06 00:34:57 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-07 23:25:42 +0200 |
commit | 75b10758ba116eabed730d23e957f1d69a1e3cb8 (patch) | |
tree | 6fb656d6aa18e3b8fd67d0fed39b79234a23fc1d /asl/base | |
parent | 4228e82740f62b841799cfca04861fa217fb93a5 (diff) |
Type traits
Diffstat (limited to 'asl/base')
-rw-r--r-- | asl/base/BUILD.bazel | 18 | ||||
-rw-r--r-- | asl/base/integers.hpp | 12 | ||||
-rw-r--r-- | asl/base/integers_tests.cpp | 13 |
3 files changed, 0 insertions, 43 deletions
diff --git a/asl/base/BUILD.bazel b/asl/base/BUILD.bazel deleted file mode 100644 index 4ce905b..0000000 --- a/asl/base/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -cc_library(
- name = "base",
- hdrs = [
- "integers.hpp",
- ],
- visibility = ["//visibility:public"],
-)
-
-cc_test(
- name = "integers_tests",
- srcs = [
- "integers_tests.cpp",
- ],
- deps = [
- ":base",
- ],
-)
-
diff --git a/asl/base/integers.hpp b/asl/base/integers.hpp deleted file mode 100644 index 07fa11e..0000000 --- a/asl/base/integers.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once
-
-using int8_t = char;
-using int16_t = short;
-using int32_t = int;
-using int64_t = long long;
-
-using uint8_t = unsigned char;
-using uint16_t = unsigned short;
-using uint32_t = unsigned int;
-using uint64_t = unsigned long long;
-
diff --git a/asl/base/integers_tests.cpp b/asl/base/integers_tests.cpp deleted file mode 100644 index 587556d..0000000 --- a/asl/base/integers_tests.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "asl/base/integers.hpp"
-
-static_assert(sizeof(int8_t) == 1);
-static_assert(sizeof(int16_t) == 2);
-static_assert(sizeof(int32_t) == 4);
-static_assert(sizeof(int64_t) == 8);
-
-static_assert(sizeof(uint8_t) == 1);
-static_assert(sizeof(uint16_t) == 2);
-static_assert(sizeof(uint32_t) == 4);
-static_assert(sizeof(uint64_t) == 8);
-
-int main() { return 0; }
|