• Home
  • Raw
  • Download

Lines Matching refs:operator

37       constexpr bool operator==(const optional<T>&, const optional<T>&);
39 constexpr bool operator!=(const optional<T>&, const optional<T>&);
41 constexpr bool operator<(const optional<T>&, const optional<T>&);
43 constexpr bool operator>(const optional<T>&, const optional<T>&);
45 constexpr bool operator<=(const optional<T>&, const optional<T>&);
47 constexpr bool operator>=(const optional<T>&, const optional<T>&);
50 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
51 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept;
52 template <class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept;
53 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept;
54 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept;
55 template <class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept;
56 template <class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept;
57 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept;
58 template <class T> constexpr bool operator>(const optional<T>&, nullopt_t) noexcept;
59 template <class T> constexpr bool operator>(nullopt_t, const optional<T>&) noexcept;
60 template <class T> constexpr bool operator>=(const optional<T>&, nullopt_t) noexcept;
61 template <class T> constexpr bool operator>=(nullopt_t, const optional<T>&) noexcept;
64 template <class T> constexpr bool operator==(const optional<T>&, const T&);
65 template <class T> constexpr bool operator==(const T&, const optional<T>&);
66 template <class T> constexpr bool operator!=(const optional<T>&, const T&);
67 template <class T> constexpr bool operator!=(const T&, const optional<T>&);
68 template <class T> constexpr bool operator<(const optional<T>&, const T&);
69 template <class T> constexpr bool operator<(const T&, const optional<T>&);
70 template <class T> constexpr bool operator<=(const optional<T>&, const T&);
71 template <class T> constexpr bool operator<=(const T&, const optional<T>&);
72 template <class T> constexpr bool operator>(const optional<T>&, const T&);
73 template <class T> constexpr bool operator>(const T&, const optional<T>&);
74 template <class T> constexpr bool operator>=(const optional<T>&, const T&);
75 template <class T> constexpr bool operator>=(const T&, const optional<T>&);
102 optional& operator=(nullopt_t) noexcept;
103 optional& operator=(const optional&);
104 optional& operator=(optional&&) noexcept(see below);
105 template <class U> optional& operator=(U&&);
114 constexpr T const* operator ->() const;
115 constexpr T* operator ->();
116 constexpr T const& operator *() const &;
117 constexpr T& operator *() &;
118 constexpr T&& operator *() &&;
119 constexpr const T&& operator *() const &&;
120 constexpr explicit operator bool() const noexcept;
347 optional& operator=(nullopt_t) noexcept
359 operator=(const optional& __opt)
379 operator=(optional&& __opt)
409 operator=(_Up&& __v)
482 operator->() const
484 _LIBCPP_ASSERT(this->__engaged_, "optional operator-> called for disengaged value");
490 operator->()
492 _LIBCPP_ASSERT(this->__engaged_, "optional operator-> called for disengaged value");
499 operator*() const
501 _LIBCPP_ASSERT(this->__engaged_, "optional operator* called for disengaged value");
507 operator*()
509 _LIBCPP_ASSERT(this->__engaged_, "optional operator* called for disengaged value");
514 constexpr explicit operator bool() const noexcept {return this->__engaged_;}
578 operator==(const optional<_Tp>& __x, const optional<_Tp>& __y)
591 operator!=(const optional<_Tp>& __x, const optional<_Tp>& __y)
600 operator<(const optional<_Tp>& __x, const optional<_Tp>& __y)
613 operator>(const optional<_Tp>& __x, const optional<_Tp>& __y)
622 operator<=(const optional<_Tp>& __x, const optional<_Tp>& __y)
631 operator>=(const optional<_Tp>& __x, const optional<_Tp>& __y)
642 operator==(const optional<_Tp>& __x, nullopt_t) noexcept
651 operator==(nullopt_t, const optional<_Tp>& __x) noexcept
660 operator!=(const optional<_Tp>& __x, nullopt_t) noexcept
669 operator!=(nullopt_t, const optional<_Tp>& __x) noexcept
678 operator<(const optional<_Tp>&, nullopt_t) noexcept
687 operator<(nullopt_t, const optional<_Tp>& __x) noexcept
696 operator<=(const optional<_Tp>& __x, nullopt_t) noexcept
705 operator<=(nullopt_t, const optional<_Tp>& __x) noexcept
714 operator>(const optional<_Tp>& __x, nullopt_t) noexcept
723 operator>(nullopt_t, const optional<_Tp>& __x) noexcept
732 operator>=(const optional<_Tp>&, nullopt_t) noexcept
741 operator>=(nullopt_t, const optional<_Tp>& __x) noexcept
751 operator==(const optional<_Tp>& __x, const _Tp& __v)
760 operator==(const _Tp& __v, const optional<_Tp>& __x)
769 operator!=(const optional<_Tp>& __x, const _Tp& __v)
778 operator!=(const _Tp& __v, const optional<_Tp>& __x)
787 operator<(const optional<_Tp>& __x, const _Tp& __v)
796 operator<(const _Tp& __v, const optional<_Tp>& __x)
805 operator<=(const optional<_Tp>& __x, const _Tp& __v)
814 operator<=(const _Tp& __v, const optional<_Tp>& __x)
823 operator>(const optional<_Tp>& __x, const _Tp& __v)
832 operator>(const _Tp& __v, const optional<_Tp>& __x)
841 operator>=(const optional<_Tp>& __x, const _Tp& __v)
850 operator>=(const _Tp& __v, const optional<_Tp>& __x)
884 result_type operator()(const argument_type& __opt) const _NOEXCEPT