Lines Matching defs:opt

733 constexpr bool operator==(const Optional<T>& opt, nullopt_t) {
734 return !opt;
738 constexpr bool operator==(nullopt_t, const Optional<T>& opt) {
739 return !opt;
743 constexpr bool operator!=(const Optional<T>& opt, nullopt_t) {
744 return opt.has_value();
748 constexpr bool operator!=(nullopt_t, const Optional<T>& opt) {
749 return opt.has_value();
753 constexpr bool operator<(const Optional<T>& opt, nullopt_t) {
758 constexpr bool operator<(nullopt_t, const Optional<T>& opt) {
759 return opt.has_value();
763 constexpr bool operator<=(const Optional<T>& opt, nullopt_t) {
764 return !opt;
768 constexpr bool operator<=(nullopt_t, const Optional<T>& opt) {
773 constexpr bool operator>(const Optional<T>& opt, nullopt_t) {
774 return opt.has_value();
778 constexpr bool operator>(nullopt_t, const Optional<T>& opt) {
783 constexpr bool operator>=(const Optional<T>& opt, nullopt_t) {
788 constexpr bool operator>=(nullopt_t, const Optional<T>& opt) {
789 return !opt;
793 constexpr bool operator==(const Optional<T>& opt, const U& value) {
794 return opt.has_value() ? *opt == value : false;
798 constexpr bool operator==(const U& value, const Optional<T>& opt) {
799 return opt.has_value() ? value == *opt : false;
803 constexpr bool operator!=(const Optional<T>& opt, const U& value) {
804 return opt.has_value() ? *opt != value : true;
808 constexpr bool operator!=(const U& value, const Optional<T>& opt) {
809 return opt.has_value() ? value != *opt : true;
813 constexpr bool operator<(const Optional<T>& opt, const U& value) {
814 return opt.has_value() ? *opt < value : true;
818 constexpr bool operator<(const U& value, const Optional<T>& opt) {
819 return opt.has_value() ? value < *opt : false;
823 constexpr bool operator<=(const Optional<T>& opt, const U& value) {
824 return opt.has_value() ? *opt <= value : true;
828 constexpr bool operator<=(const U& value, const Optional<T>& opt) {
829 return opt.has_value() ? value <= *opt : false;
833 constexpr bool operator>(const Optional<T>& opt, const U& value) {
834 return opt.has_value() ? *opt > value : false;
838 constexpr bool operator>(const U& value, const Optional<T>& opt) {
839 return opt.has_value() ? value > *opt : true;
843 constexpr bool operator>=(const Optional<T>& opt, const U& value) {
844 return opt.has_value() ? *opt >= value : false;
848 constexpr bool operator>=(const U& value, const Optional<T>& opt) {
849 return opt.has_value() ? value >= *opt : true;