Lines Matching refs:Optional

122 class Optional {
126 constexpr Optional() {}
128 constexpr Optional(base::nullopt_t) {} // NOLINT(runtime/explicit)
130 Optional(const Optional& other) {
134 Optional(Optional&& other) V8_NOEXCEPT {
138 constexpr Optional(const T& value) // NOLINT(runtime/explicit)
142 Optional(T&& value) // NOLINT(runtime/explicit)
147 explicit Optional(base::in_place_t, Args&&... args)
150 ~Optional() = default;
152 Optional& operator=(base::nullopt_t) {
157 Optional& operator=(const Optional& other) {
167 Optional& operator=(Optional&& other) V8_NOEXCEPT {
179 Optional&>::type
262 void swap(Optional& other) {
333 constexpr bool operator==(const Optional<T>& lhs, const Optional<T>& rhs) {
338 constexpr bool operator!=(const Optional<T>& lhs, const Optional<T>& rhs) {
343 constexpr bool operator<(const Optional<T>& lhs, const Optional<T>& rhs) {
348 constexpr bool operator<=(const Optional<T>& lhs, const Optional<T>& rhs) {
353 constexpr bool operator>(const Optional<T>& lhs, const Optional<T>& rhs) {
358 constexpr bool operator>=(const Optional<T>& lhs, const Optional<T>& rhs) {
363 constexpr bool operator==(const Optional<T>& opt, base::nullopt_t) {
368 constexpr bool operator==(base::nullopt_t, const Optional<T>& opt) {
373 constexpr bool operator!=(const Optional<T>& opt, base::nullopt_t) {
378 constexpr bool operator!=(base::nullopt_t, const Optional<T>& opt) {
383 constexpr bool operator<(const Optional<T>& opt, base::nullopt_t) {
388 constexpr bool operator<(base::nullopt_t, const Optional<T>& opt) {
393 constexpr bool operator<=(const Optional<T>& opt, base::nullopt_t) {
398 constexpr bool operator<=(base::nullopt_t, const Optional<T>& opt) {
403 constexpr bool operator>(const Optional<T>& opt, base::nullopt_t) {
408 constexpr bool operator>(base::nullopt_t, const Optional<T>& opt) {
413 constexpr bool operator>=(const Optional<T>& opt, base::nullopt_t) {
418 constexpr bool operator>=(base::nullopt_t, const Optional<T>& opt) {
423 constexpr bool operator==(const Optional<T>& opt, const T& value) {
428 constexpr bool operator==(const T& value, const Optional<T>& opt) {
433 constexpr bool operator!=(const Optional<T>& opt, const T& value) {
438 constexpr bool operator!=(const T& value, const Optional<T>& opt) {
443 constexpr bool operator<(const Optional<T>& opt, const T& value) {
448 constexpr bool operator<(const T& value, const Optional<T>& opt) {
453 constexpr bool operator<=(const Optional<T>& opt, const T& value) {
458 constexpr bool operator<=(const T& value, const Optional<T>& opt) {
463 constexpr bool operator>(const Optional<T>& opt, const T& value) {
468 constexpr bool operator>(const T& value, const Optional<T>& opt) {
473 constexpr bool operator>=(const Optional<T>& opt, const T& value) {
478 constexpr bool operator>=(const T& value, const Optional<T>& opt) {
483 constexpr Optional<typename std::decay<T>::type> make_optional(T&& value) {
484 return Optional<typename std::decay<T>::type>(std::forward<T>(value));
488 void swap(Optional<T>& lhs, Optional<T>& rhs) {