Effective C++笔记
Consider support for a non-throwing swap
标准库swap算法
pointer to implementation
std全特化
class templates
企图偏特化一个function template(std::swap),但C++只允许对class template偏特化,
在function templates身上偏特化是行不通的
using std::swap
重写swap
成员版swap绝不可能抛出异常
总结