MCPcopy Create free account
hub / github.com/ThePhD/sol2 / operator<

Function operator<

include/sol/optional_implementation.hpp:1460–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458 /// \group relop
1459 template <class T, class U>
1460 inline constexpr bool operator<(const optional<T>& lhs, const optional<U>& rhs) {
1461 return rhs.has_value() && (!lhs.has_value() || *lhs < *rhs);
1462 }
1463 /// \group relop
1464 template <class T, class U>
1465 inline constexpr bool operator>(const optional<T>& lhs, const optional<U>& rhs) {

Callers

nothing calls this directly

Calls 1

has_valueMethod · 0.45

Tested by

no test coverage detected