std::shared_ptr::swap
STD::共享[医]PTR::交换
void swap( shared_ptr& r | | (since C++11) |
---|
交换…的内容*this
和r
...
参数
r | - | smart pointer to exchange the contents with |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。