Lines Matching refs:nullopt_t

23   struct nullopt_t{see below };
24 inline constexpr nullopt_t nullopt(unspecified );
44 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
45 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept;
46 template <class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept;
47 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept;
48 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept;
49 template <class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept;
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;
89 constexpr optional(nullopt_t) noexcept;
106 optional &operator=(nullopt_t) noexcept; // constexpr in C++20
231 struct nullopt_t
234 _LIBCPP_INLINE_VISIBILITY constexpr explicit nullopt_t(__secret_tag, __secret_tag) noexcept {}
237 inline constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};
657 static_assert(!is_same_v<__uncvref_t<value_type>, nullopt_t>,
658 "instantiation of optional with nullopt_t is ill-formed");
751 _LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
830 _LIBCPP_CONSTEXPR_AFTER_CXX17 optional& operator=(nullopt_t) noexcept
1115 static_assert(!is_same_v<_Up, nullopt_t>,
1116 "Result of f(value()) should not be std::nullopt_t");
1130 static_assert(!is_same_v<_Up, nullopt_t>,
1131 "Result of f(value()) should not be std::nullopt_t");
1145 static_assert(!is_same_v<_Up, nullopt_t>,
1146 "Result of f(std::move(value())) should not be std::nullopt_t");
1160 static_assert(!is_same_v<_Up, nullopt_t>,
1161 "Result of f(std::move(value())) should not be std::nullopt_t");
1298 operator==(const optional<_Tp>& __x, nullopt_t) noexcept
1306 operator==(nullopt_t, const optional<_Tp>& __x) noexcept
1314 operator!=(const optional<_Tp>& __x, nullopt_t) noexcept
1322 operator!=(nullopt_t, const optional<_Tp>& __x) noexcept
1330 operator<(const optional<_Tp>&, nullopt_t) noexcept
1338 operator<(nullopt_t, const optional<_Tp>& __x) noexcept
1346 operator<=(const optional<_Tp>& __x, nullopt_t) noexcept
1354 operator<=(nullopt_t, const optional<_Tp>&) noexcept
1362 operator>(const optional<_Tp>& __x, nullopt_t) noexcept
1370 operator>(nullopt_t, const optional<_Tp>&) noexcept
1378 operator>=(const optional<_Tp>&, nullopt_t) noexcept
1386 operator>=(nullopt_t, const optional<_Tp>& __x) noexcept