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

Function operator<

dlib/optional.h:815–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813
814 template <class T, class U>
815 constexpr bool operator<(const optional<T> &lhs, const optional<U> &rhs) noexcept(noexcept(std::declval<T>() < std::declval<T>()))
816 {
817 return bool(rhs) && (!bool(lhs) || *lhs < *rhs);
818 }
819
820 template <class T, class U>
821 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