Google C++ Style Guide
private: string table_name_; // OK - underscore at end. string tablename_; // OK. static Pool* pool_; // OK. }; Struct Data Members Data members of structs, both static and non-static, are members in classes have. struct UrlTableProperties { string name; int num_entries; static Pool * pool; }; See Structs vs. Classes for a discussion of when to use a struct versus a class 0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1