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

Function operator==

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

Source from the content-addressed store, hash-verified

200
201template <class T, class U>
202inline bool operator==(const optional<T>& lhs, const optional<U>& rhs) {
203 if (!lhs.has_value() && !rhs.has_value()) {
204 return true;
205 }
206 if (!lhs.has_value() || !rhs.has_value()) {
207 return false;
208 }
209 return lhs.value() == rhs.value();
210}
211
212template <class T, class U>
213inline 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…