std::any::has_value
std::any::has_value
bool has_value() const; | (since C++17) |
Checks whether the object contains a value.
Parameters
(none).
Return value
true
if instance contains a value, otherwise false
.
Exceptions
noexcept
specification: noexcept
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unporte