Lines Matching refs:nullopt_t
29 struct nullopt_t{see below };
30 inline constexpr nullopt_t nullopt(unspecified );
53 template<class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
54 …template<class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept; // until C++17
55 …template<class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept; // until C++17
56 …template<class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept; // until C++17
57 …template<class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept; // until C++17
58 …template<class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept; // until C++17
59 …template<class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept; // until C++17
60 …template<class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept; // until C++17
61 …template<class T> constexpr bool operator>(const optional<T>&, nullopt_t) noexcept; // until C++17
62 …template<class T> constexpr bool operator>(nullopt_t, const optional<T>&) noexcept; // until C++17
63 …template<class T> constexpr bool operator>=(const optional<T>&, nullopt_t) noexcept; // until C++17
64 …template<class T> constexpr bool operator>=(nullopt_t, const optional<T>&) noexcept; // until C++17
66 … constexpr strong_ordering operator<=>(const optional<T>&, nullopt_t) noexcept; // since C++20
108 constexpr optional(nullopt_t) noexcept;
126 …optional &operator=(nullopt_t) noexcept; // constexpr in C++20
267 struct nullopt_t {
271 _LIBCPP_HIDE_FROM_ABI constexpr explicit nullopt_t(__secret_tag, __secret_tag) noexcept {}
274 inline constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};
590 static_assert(!is_same_v<__remove_cvref_t<value_type>, nullopt_t>,
591 "instantiation of optional with nullopt_t is ill-formed");
665 _LIBCPP_HIDE_FROM_ABI constexpr optional(nullopt_t) noexcept {}
718 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 optional& operator=(nullopt_t) noexcept {
908 static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(value()) should not be std::nullopt_t");
920 static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(value()) should not be std::nullopt_t");
932 …static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(std::move(value())) should not be std::null…
944 …static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(std::move(value())) should not be std::null…
1069 _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const optional<_Tp>& __x, nullopt_t) noexcept {
1076 _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(nullopt_t, const optional<_Tp>& __x) noexcept {
1081 _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(const optional<_Tp>& __x, nullopt_t) noexcept {
1086 _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(nullopt_t, const optional<_Tp>& __x) noexcept {
1091 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(const optional<_Tp>&, nullopt_t) noexcept {
1096 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(nullopt_t, const optional<_Tp>& __x) noexcept {
1101 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(const optional<_Tp>& __x, nullopt_t) noexcept {
1106 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(nullopt_t, const optional<_Tp>&) noexcept {
1111 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(const optional<_Tp>& __x, nullopt_t) noexcept {
1116 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(nullopt_t, const optional<_Tp>&) noexcept {
1121 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>=(const optional<_Tp>&, nullopt_t) noexcept {
1126 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>=(nullopt_t, const optional<_Tp>& __x) noexcept {
1133 _LIBCPP_HIDE_FROM_ABI constexpr strong_ordering operator<=>(const optional<_Tp>& __x, nullopt_t) no…