- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 why use Base in derived class
class my_container : unordered_map<string, int>{ typedef unordered_map<string, int> Base; void get(const string& name){ assertm(Base::find(name) != Base::end(), "should can be...
2018-08-26 10:52:46 154
原创 why empty constructor is necessary
follow stackflow: class Image{ public: Image(int size):size_(size){} private: inst size_; }; class Render{ public: Render(int size=0){image_={size};} //image_={size} c++11 priva...
2018-08-26 10:28:41 124
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人