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
218 struct nullopt_t
221 _LIBCPP_INLINE_VISIBILITY constexpr explicit nullopt_t(__secret_tag, __secret_tag) noexcept {}
224 inline constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};
644 static_assert(!is_same_v<__remove_cvref_t<value_type>, nullopt_t>,
645 "instantiation of optional with nullopt_t is ill-formed");
738 _LIBCPP_INLINE_VISIBILITY constexpr optional(nullopt_t) noexcept {}
817 _LIBCPP_CONSTEXPR_SINCE_CXX20 optional& operator=(nullopt_t) noexcept
1102 static_assert(!is_same_v<_Up, nullopt_t>,
1103 "Result of f(value()) should not be std::nullopt_t");
1117 static_assert(!is_same_v<_Up, nullopt_t>,
1118 "Result of f(value()) should not be std::nullopt_t");
1132 static_assert(!is_same_v<_Up, nullopt_t>,
1133 "Result of f(std::move(value())) should not be std::nullopt_t");
1147 static_assert(!is_same_v<_Up, nullopt_t>,
1148 "Result of f(std::move(value())) should not be std::nullopt_t");
1285 operator==(const optional<_Tp>& __x, nullopt_t) noexcept
1293 operator==(nullopt_t, const optional<_Tp>& __x) noexcept
1301 operator!=(const optional<_Tp>& __x, nullopt_t) noexcept
1309 operator!=(nullopt_t, const optional<_Tp>& __x) noexcept
1317 operator<(const optional<_Tp>&, nullopt_t) noexcept
1325 operator<(nullopt_t, const optional<_Tp>& __x) noexcept
1333 operator<=(const optional<_Tp>& __x, nullopt_t) noexcept
1341 operator<=(nullopt_t, const optional<_Tp>&) noexcept
1349 operator>(const optional<_Tp>& __x, nullopt_t) noexcept
1357 operator>(nullopt_t, const optional<_Tp>&) noexcept
1365 operator>=(const optional<_Tp>&, nullopt_t) noexcept
1373 operator>=(nullopt_t, const optional<_Tp>& __x) noexcept