MCPcopy Create free account
hub / github.com/davisking/dlib / operator==

Function operator==

dlib/optional.h:803–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801
802 template <class T, class U>
803 constexpr bool operator==(const optional<T> &lhs, const optional<U> &rhs) noexcept(noexcept(std::declval<T>() == std::declval<T>()))
804 {
805 return bool(lhs) == bool(rhs) && (!bool(lhs) || *lhs == *rhs);
806 }
807
808 template <class T, class U>
809 constexpr bool operator!=(const optional<T> &lhs, const optional<U> &rhs) noexcept(noexcept(std::declval<T>() != std::declval<T>()))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected