摘要:
const object - an object whose type is const-qualified, or a non-mutable subobject of a const object. Such object cannot be modified: attempt to do so 阅读全文
摘要:
int m=9;struct C{ int f() const{ return ++e; }private: mutable int e; static int d;};int C::d = 2;int main(int argc, char *argv[]){ int c = 4; std::co 阅读全文
摘要:
https://en.cppreference.com/w/ The zero-overhead principle is a C++ design principle that states: You don't pay for what you don't use. What you do us 阅读全文