MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / valueOr

Method valueOr

tests/catch.hpp:4595–4597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4593 const T* operator->() const { return nullableValue; }
4594
4595 T valueOr( T const& defaultValue ) const {
4596 return nullableValue ? *nullableValue : defaultValue;
4597 }
4598
4599 bool some() const { return nullableValue != nullptr; }
4600 bool none() const { return nullableValue == nullptr; }

Callers 1

listFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected