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

Method valueOr

extlibs/catch/include/catch/catch.hpp:4347–4349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4345 const T* operator->() const { return nullableValue; }
4346
4347 T valueOr( T const& defaultValue ) const {
4348 return nullableValue ? *nullableValue : defaultValue;
4349 }
4350
4351 bool some() const { return nullableValue != nullptr; }
4352 bool none() const { return nullableValue == nullptr; }

Callers 1

listFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected