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

Function operator<

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

Source from the content-addressed store, hash-verified

216
217template <class T, class U>
218inline bool operator<(const optional<T>& lhs, const optional<U>& rhs) {
219 if (!rhs.has_value()) {
220 return false;
221 }
222 if (!lhs.has_value()) {
223 return true;
224 }
225 return lhs.value() < rhs.value();
226}
227
228template <class T, class U>
229inline 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…