MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / operator<=

Function operator<=

tests/framework/src/doctest.cpp:709–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707bool operator< (const String& lhs, const String& rhs) { return lhs.compare(rhs) < 0; }
708bool operator> (const String& lhs, const String& rhs) { return lhs.compare(rhs) > 0; }
709bool operator<=(const String& lhs, const String& rhs) { return (lhs != rhs) ? lhs.compare(rhs) < 0 : true; }
710bool operator>=(const String& lhs, const String& rhs) { return (lhs != rhs) ? lhs.compare(rhs) > 0 : true; }
711
712std::ostream& operator<<(std::ostream& s, const String& in) { return s << in.c_str(); }

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected