MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / valueOr

Method valueOr

unittests/catch.hpp:3509–3511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3507 const T* operator->() const { return nullableValue; }
3508
3509 T valueOr( T const& defaultValue ) const {
3510 return nullableValue ? *nullableValue : defaultValue;
3511 }
3512
3513 bool some() const { return nullableValue != nullptr; }
3514 bool none() const { return nullableValue == nullptr; }

Callers 1

listFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected