MCPcopy Create free account
hub / github.com/ThePhD/sol2 / has_value

Function has_value

include/sol/optional_implementation.hpp:1362–1364  ·  view source on GitHub ↗

\returns whether or not the optional has a value \group has_value

Source from the content-addressed store, hash-verified

1360 /// \returns whether or not the optional has a value
1361 /// \group has_value
1362 constexpr bool has_value() const noexcept {
1363 return this->m_has_value;
1364 }
1365
1366 /// \group has_value
1367 constexpr explicit operator bool() const noexcept {

Callers 15

and_thenMethod · 0.85
or_elseMethod · 0.85
map_orMethod · 0.85
map_or_elseMethod · 0.85
conjunctionMethod · 0.85
disjunctionMethod · 0.85
swapFunction · 0.85
value_orFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected