... | ... | @@ -20,7 +20,9 @@ using std::vector<std::vector<double>> = vDouble2D; |
|
|
<strong>Using and typedef keywords:</strong> Prefer the keyword using over typedef for readability. Only rename very long complex or custom types, do not rename standard types ( int , double , std::vector ). Prefer including ADIOSTypes.h as it contains fixed types in the std:: namespace uint8_t, uint64_t .
|
|
|
<ul>
|
|
|
<li>Don't:
|
|
|
```cpp typedef std::vector<std::vector<std::map<std::string, double>>> MapIn2DVector;```
|
|
|
```cpp
|
|
|
typedef std::vector<std::vector<std::map<std::string, double>>> MapIn2DVector;
|
|
|
```
|
|
|
</li>
|
|
|
|
|
|
<li><code>Do</code> <ul><li><pre style="border: 0;"><code> using std::vector < std::vector < std::map < std::string , double > > > = <strong>MapIn2DVector;</strong> </code></pre></li></ul></li></ul></li></ol> |
|
|
\ No newline at end of file |