C++ 赋值的拷贝和移动语义
1. 类对象的默认赋值行为 {#title-0} ======================== ``` class Demo1 { public: Demo1(int a, int b, int c) : m_a(a), m_b(b), m_c(c) {} public: int m_a; int m_b; int m_c; }; ostream& op...
1. 类对象的默认赋值行为 {#title-0} ======================== ``` class Demo1 { public: Demo1(int a, int b, int c) : m_a(a), m_b(b), m_c(c) {} public: int m_a; int m_b; int m_c; }; ostream& op...