Home | History | Annotate | Download | only in base

Lines Matching refs:opt

364 constexpr bool operator==(const Optional<T>& opt, base::nullopt_t) {
365 return !opt;
369 constexpr bool operator==(base::nullopt_t, const Optional<T>& opt) {
370 return !opt;
374 constexpr bool operator!=(const Optional<T>& opt, base::nullopt_t) {
375 return !!opt;
379 constexpr bool operator!=(base::nullopt_t, const Optional<T>& opt) {
380 return !!opt;
384 constexpr bool operator<(const Optional<T>& opt, base::nullopt_t) {
389 constexpr bool operator<(base::nullopt_t, const Optional<T>& opt) {
390 return !!opt;
394 constexpr bool operator<=(const Optional<T>& opt, base::nullopt_t) {
395 return !opt;
399 constexpr bool operator<=(base::nullopt_t, const Optional<T>& opt) {
404 constexpr bool operator>(const Optional<T>& opt, base::nullopt_t) {
405 return !!opt;
409 constexpr bool operator>(base::nullopt_t, const Optional<T>& opt) {
414 constexpr bool operator>=(const Optional<T>& opt, base::nullopt_t) {
419 constexpr bool operator>=(base::nullopt_t, const Optional<T>& opt) {
420 return !opt;
424 constexpr bool operator==(const Optional<T>& opt, const T& value) {
425 return opt != nullopt ? *opt == value : false;
429 constexpr bool operator==(const T& value, const Optional<T>& opt) {
430 return opt == value;
434 constexpr bool operator!=(const Optional<T>& opt, const T& value) {
435 return !(opt == value);
439 constexpr bool operator!=(const T& value, const Optional<T>& opt) {
440 return !(opt == value);
444 constexpr bool operator<(const Optional<T>& opt, const T& value) {
445 return opt != nullopt ? *opt < value : true;
449 constexpr bool operator<(const T& value, const Optional<T>& opt) {
450 return opt != nullopt ? value < *opt : false;
454 constexpr bool operator<=(const Optional<T>& opt, const T& value) {
455 return !(opt > value);
459 constexpr bool operator<=(const T& value, const Optional<T>& opt) {
460 return !(value > opt);
464 constexpr bool operator>(const Optional<T>& opt, const T& value) {
465 return value < opt;
469 constexpr bool operator>(const T& value, const Optional<T>& opt) {
470 return opt < value;
474 constexpr bool operator>=(const Optional<T>& opt, const T& value) {
475 return !(opt < value);
479 constexpr bool operator>=(const T& value, const Optional<T>& opt) {
480 return !(value < opt);
499 size_t operator()(const base::Optional<T>& opt) const {
500 return opt == base::nullopt ? 0 : std::hash<T>()(*opt);