member function
std::optional::has_value
- Header
<optional>- Scope
std::optional- cppreference
- std::optional::has_value
Synopsis
constexpr bool has_value() const noexcept;member function
<optional>std::optionalconstexpr bool has_value() const noexcept;