标签:
inline可以带来各种好处:
1 inline void f(){...} 2 void (*pf)() = f; 3 ... 4 f(); 5 pf();
1 class Base{ 2 public: 3 private: 4 std::string; 5 }; 6 class Derived : public Base{ 7 public: 8 Derived(){} 9 ... 10 private: 11 std::string dm1, dm2, dm3; 12 };
标签:
原文地址:http://www.cnblogs.com/-wang-cheng/p/4872330.html