std::experimental::observer_ptr<W>::swap_C++中文网

constexpr void swap(observer_ptr& other) noexcept;

(库基础 TS v2)

通过在 *thisother 的存储指针上调用 swap ,交换 *this 和另一 observer_ptr 对象 other 的被查看对象。

参数

other - 要与之交换所查看对象的另一 observer_ptr 对象

返回值

(无)

示例

本节未完成
原因:暂无示例