Skip to content

Commit 3d542ea

Browse files
committed
improve comments and naming of global datatypes
1 parent 1afcb0d commit 3d542ea

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

src/meta/global_datatypes.hpp

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
// Several useful datatypes which are const by default.
2-
// Note these are in the GLOBAL NAMESPACE, so only include this file if you REALLY want to use these aliases.
1+
//! @brief Several useful datatypes which are const by default. Note these are
2+
//! in the GLOBAL NAMESPACE, so only include this file if you REALLY
3+
//! want to use these aliases.
34

45
#pragma once
56

67
#include <cstdint>
78
#include <vector>
89

910
// primitive aliases
10-
using b8 = const bool;
11-
using c8 = const char;
12-
using i32 = const int;
13-
using i64 = const int64_t;
14-
using f32 = const float;
15-
using f64 = const double;
16-
using mutable_b8 = bool;
17-
using mutable_c8 = char;
18-
using mutable_i32 = int;
19-
using mutable_i64 = int64_t;
20-
using mutable_f32 = float;
21-
using mutable_f64 = double;
11+
using b8 = const bool;
12+
using c8 = const char;
13+
using i32 = const int;
14+
using i64 = const int64_t;
15+
using f32 = const float;
16+
using f64 = const double;
17+
using mut_b8 = bool;
18+
using mut_c8 = char;
19+
using mut_i32 = int;
20+
using mut_i64 = int64_t;
21+
using mut_f32 = float;
22+
using mut_f64 = double;
2223

2324
// vector aliases
24-
using vb8 = const std::vector<bool>;
25-
using vc8 = const std::vector<char>;
26-
using vi32 = const std::vector<int>;
27-
using vi64 = const std::vector<int64_t>;
28-
using vf32 = const std::vector<float>;
29-
using vf64 = const std::vector<double>;
30-
using mutable_vb8 = std::vector<bool>;
31-
using mutable_vc8 = std::vector<char>;
32-
using mutable_vi32 = std::vector<int>;
33-
using mutable_vi64 = std::vector<int64_t>;
34-
using mutable_vf32 = std::vector<float>;
35-
using mutable_vf64 = std::vector<double>;
25+
using vb8 = const std::vector<bool>;
26+
using vc8 = const std::vector<char>;
27+
using vi32 = const std::vector<int>;
28+
using vi64 = const std::vector<int64_t>;
29+
using vf32 = const std::vector<float>;
30+
using vf64 = const std::vector<double>;
31+
using mut_vb8 = std::vector<bool>;
32+
using mut_vc8 = std::vector<char>;
33+
using mut_vi32 = std::vector<int>;
34+
using mut_vi64 = std::vector<int64_t>;
35+
using mut_vf32 = std::vector<float>;
36+
using mut_vf64 = std::vector<double>;

0 commit comments

Comments
 (0)