Google C++ Style Guidefunction static variables, must be Plain Old Data (POD): only ints, chars, floats, or pointers, or arrays/structs of POD. The order in which class constructors and initializers for static variables are we only allow static variables to contain POD data. This rule completely disallows vector (use C arrays instead), or string (use const char []). If you need a static or global variable of a class type copying it. Variable-Length Arrays and alloca() We do not allow variable-length arrays or alloca(). Variable-length arrays have natural-looking syntax. Both variable-length arrays and alloca() are very efficient0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Java Style Guidedeclarations typically have initializers, or are initialized immediately after dec- laration. 4.8.3 Arrays 4.8.3.1 Array initializers: can be “block-like” Any array initializer may optionally be formatted0 码力 | 19 页 | 84.76 KB | 1 年前3
共 2 条
- 1













