atomic 模板参数
std::atomic<T>要成立,T需要以下值都返回true:
std::is_trivially_copyable<T>::value
std::is_copy_constructible<T>::value
std::is_move_constructible<T>::value
std::is_copy_assignable<T>::value
std::is_move_assignable<T>::value
std::string并不满足is_trivially_copyable的条件
vector 模板参数
std::vector<T>要成立,T需要以下值都返回true:
std::is_copy_constructible<T>::value
std::is_copy_assignable<T>::value