Namespaces
Variants
Views
Actions

std::any::has_value

From cppreference.com
< cpp‎ | utility‎ | any
 
 
 
std::any
Member functions
Modifers
Observers
any::has_value
Non-member functions
 
bool has_value() const noexcept;
(since C++17)

Checks whether the object contains a value.

[edit] Parameters

(none)

[edit] Return value

true if instance contains a value, otherwise false.