... | ... | @@ -33,13 +33,13 @@ |
|
|
|
|
|
4. <strong>Using and typedef keywords:</strong> Prefer the keyword <strong>using</strong> over <strong>typedef</strong> for readability. Only rename very long complex or custom types, do not rename standard types (int, double, std::vector<double>). Prefer including ADIOSTypes.h as it contains fixed types in the std:: namespace uint8_t, uint64_t .
|
|
|
|
|
|
* Don't
|
|
|
* _Don't_
|
|
|
|
|
|
```cpp
|
|
|
typedef std::vector<std::vector<std::map<std::string, double>>> MapIn2DVector;
|
|
|
```
|
|
|
|
|
|
* Do
|
|
|
* _Do_
|
|
|
|
|
|
```cpp
|
|
|
using std::vector<std::vector<std::map<std::string, double>>> = MapIn2DVector;
|
... | ... | |