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

Function operator<=

Utilities/cmcppdap/include/dap/optional.h:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228template <class T, class U>
229inline bool operator<=(const optional<T>& lhs, const optional<U>& rhs) {
230 if (!lhs.has_value()) {
231 return true;
232 }
233 if (!rhs.has_value()) {
234 return false;
235 }
236 return lhs.value() <= rhs.value();
237}
238
239template <class T, class U>
240inline bool operator>(const optional<T>& lhs, const optional<U>& rhs) {

Callers

nothing calls this directly

Calls 2

has_valueMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…