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
273 struct nullopt_t {
277 _LIBCPP_HIDE_FROM_ABI constexpr explicit nullopt_t(__secret_tag, __secret_tag) noexcept {}
280 inline constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};
594 static_assert(!is_same_v<__remove_cvref_t<value_type>, nullopt_t>,
595 "instantiation of optional with nullopt_t is ill-formed");
669 _LIBCPP_HIDE_FROM_ABI constexpr optional(nullopt_t) noexcept {}
719 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 optional& operator=(nullopt_t) noexcept {
909 static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(value()) should not be std::nullopt_t");
921 static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(value()) should not be std::nullopt_t");
933 …static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(std::move(value())) should not be std::null…
945 …static_assert(!is_same_v<_Up, nullopt_t>, "Result of f(std::move(value())) should not be std::null…
1070 _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const optional<_Tp>& __x, nullopt_t) noexcept {
1077 _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(nullopt_t, const optional<_Tp>& __x) noexcept {
1082 _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(const optional<_Tp>& __x, nullopt_t) noexcept {
1087 _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(nullopt_t, const optional<_Tp>& __x) noexcept {
1092 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(const optional<_Tp>&, nullopt_t) noexcept {
1097 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(nullopt_t, const optional<_Tp>& __x) noexcept {
1102 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(const optional<_Tp>& __x, nullopt_t) noexcept {
1107 _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(nullopt_t, const optional<_Tp>&) noexcept {
1112 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(const optional<_Tp>& __x, nullopt_t) noexcept {
1117 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(nullopt_t, const optional<_Tp>&) noexcept {
1122 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>=(const optional<_Tp>&, nullopt_t) noexcept {
1127 _LIBCPP_HIDE_FROM_ABI constexpr bool operator>=(nullopt_t, const optional<_Tp>& __x) noexcept {
1134 _LIBCPP_HIDE_FROM_ABI constexpr strong_ordering operator<=>(const optional<_Tp>& __x, nullopt_t) no…