Skip to content

Commit

Permalink
2023-12-07
Browse files Browse the repository at this point in the history
  • Loading branch information
XieYHccc committed Dec 8, 2023
1 parent 1d9d508 commit 7ec0d29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _posts/2023-12-07-Copy-And-Move-Semantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* Scalar type(int, float等等):调用内置赋值运算符

* **显示定义了拷贝构造函数/拷贝赋值运算符**
所有行为均由用户定义。只有显示使用初始化列表拷贝构造/赋值类成员,才会调用类成员的拷贝构造/赋值
* 所有行为均由用户定义。只有显示使用初始化列表拷贝构造/赋值类成员,才会调用类成员的拷贝构造/赋值


## 移动构造函数/移动赋值运算符的行为

Expand All @@ -18,7 +19,8 @@
* Scalar type(int, float等等):调用内置赋值函数

* **显示定义了移动构造函数/移动赋值运算符**
所有行为均由用户定义。只有显示使用初始化列表移动构造/移动赋值类成员,才会调用类成员的移动构造函数/移动赋值运算符
* 所有行为均由用户定义。只有显示使用初始化列表移动构造/移动赋值类成员,才会调用类成员的移动构造函数/移动赋值运算符


## 误区

Expand Down

0 comments on commit 7ec0d29

Please sign in to comment.