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

Method ok

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

Source from the content-addressed store, hash-verified

5783
5784 template<typename U>
5785 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }
5786 static auto ok() -> BasicResult { return { ResultBase::Ok }; }
5787 static auto logicError( std::string const &message ) -> BasicResult { return { ResultBase::LogicError, message }; }
5788 static auto runtimeError( std::string const &message ) -> BasicResult { return { ResultBase::RuntimeError, message }; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected