std::any::
reset
<
cpp
|
utility
|
any
void
reset
(
)
noexcept
;
(C++17 起)
若非空,则销毁所含对象。
参数
(无)
返回值
(无)
参阅
has_value
检查对象是否含有值
(公开成员函数)