cpp / latest / utility / any / reset.html /

std::any::reset

void reset() noexcept;
(since C++17)

If not empty, destroys the contained object.

Parameters

(none).

Return value

(none).

See also

checks if object holds a value
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/any/reset