发布于 2022-02-24 06:41:10
有两种常用的方法可以在容器中实现移动,比如在内部保存指向数据的指针的向量:
该标准希望给实现留下回旋余地,让它们都可以完成。这些保证是它能够作出的最有力的保证,同时允许采用任何一种实施方法:
- 1st method: leaves other in empty state
- 2st method (swap): leaves other in empty state- 1st method: leaves other in empty state
- 2st method (swap): leaves other as a copy of initial thishttps://stackoverflow.com/questions/71247774
复制相似问题