摘要:
1、The initial motivation for C++ templates was straightforward: to make it possible to create type-safe containers like vector, list, and map.Ultimate... 阅读全文
摘要:
Never redefine an inherited non-virtual function1、如下代码通过不同指针调用同一个对象的同一个函数会产生不同的行为The reason for this two-faced behavior is that non-virtual functions... 阅读全文
摘要:
1、Furthermore, I explain what the different features in C++ really mean — what you are really expressing when you use a particular construct. For exam... 阅读全文
摘要:
1、For the most part, coming up with appropriate definitions for your classes (and class templates) and appropriate declarations for your functions (an... 阅读全文