Skip to content

Commit 4f009b5

Browse files
committed
Fix <optional>
1 parent 35c0631 commit 4f009b5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

libcxx/include/optional

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ optional(_Tp) -> optional<_Tp>;
986986

987987
// [optional.relops] Relational operators
988988

989-
# if _LIBCPP_STD_VER < 26
989+
# if _LIBCPP_STD_VER >= 26
990990
template < class _Tp, class _Up>
991991
# else
992992
template <
@@ -1008,7 +1008,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const optional<_Tp>& __x, const
10081008
return *__x == *__y;
10091009
}
10101010

1011-
# if _LIBCPP_STD_VER < 26
1011+
# if _LIBCPP_STD_VER >= 26
10121012
template < class _Tp, class _Up>
10131013
# else
10141014
template <
@@ -1030,7 +1030,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(const optional<_Tp>& __x, const
10301030
return *__x != *__y;
10311031
}
10321032

1033-
# if _LIBCPP_STD_VER < 26
1033+
# if _LIBCPP_STD_VER >= 26
10341034
template < class _Tp, class _Up>
10351035
# else
10361036
template <
@@ -1052,7 +1052,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(const optional<_Tp>& __x, const o
10521052
return *__x < *__y;
10531053
}
10541054

1055-
# if _LIBCPP_STD_VER < 26
1055+
# if _LIBCPP_STD_VER >= 26
10561056
template < class _Tp, class _Up>
10571057
# else
10581058
template <
@@ -1074,7 +1074,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(const optional<_Tp>& __x, const o
10741074
return *__x > *__y;
10751075
}
10761076

1077-
# if _LIBCPP_STD_VER < 26
1077+
# if _LIBCPP_STD_VER >= 26
10781078
template < class _Tp, class _Up>
10791079
# else
10801080
template <
@@ -1096,7 +1096,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(const optional<_Tp>& __x, const
10961096
return *__x <= *__y;
10971097
}
10981098

1099-
# if _LIBCPP_STD_VER < 26
1099+
# if _LIBCPP_STD_VER >= 26
11001100
template < class _Tp, class _Up>
11011101
# else
11021102
template <
@@ -1205,7 +1205,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr strong_ordering operator<=>(const optional<_Tp>&
12051205

12061206
// [optional.comp.with.t] Comparison with T
12071207

1208-
# if _LIBCPP_STD_VER < 26
1208+
# if _LIBCPP_STD_VER >= 26
12091209
template < class _Tp, class _Up>
12101210
# else
12111211
template <
@@ -1223,7 +1223,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const optional<_Tp>& __x, const
12231223
return static_cast<bool>(__x) ? *__x == __v : false;
12241224
}
12251225

1226-
# if _LIBCPP_STD_VER < 26
1226+
# if _LIBCPP_STD_VER >= 26
12271227
template < class _Tp, class _Up>
12281228
# else
12291229
template <
@@ -1241,7 +1241,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const _Tp& __v, const optional<_
12411241
return static_cast<bool>(__x) ? __v == *__x : false;
12421242
}
12431243

1244-
# if _LIBCPP_STD_VER < 26
1244+
# if _LIBCPP_STD_VER >= 26
12451245
template < class _Tp, class _Up>
12461246
# else
12471247
template <
@@ -1259,7 +1259,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(const optional<_Tp>& __x, const
12591259
return static_cast<bool>(__x) ? *__x != __v : true;
12601260
}
12611261

1262-
# if _LIBCPP_STD_VER < 26
1262+
# if _LIBCPP_STD_VER >= 26
12631263
template < class _Tp, class _Up>
12641264
# else
12651265
template <
@@ -1277,7 +1277,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator!=(const _Tp& __v, const optional<_
12771277
return static_cast<bool>(__x) ? __v != *__x : true;
12781278
}
12791279

1280-
# if _LIBCPP_STD_VER < 26
1280+
# if _LIBCPP_STD_VER >= 26
12811281
template < class _Tp, class _Up>
12821282
# else
12831283
template <
@@ -1295,7 +1295,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(const optional<_Tp>& __x, const _
12951295
return static_cast<bool>(__x) ? *__x < __v : true;
12961296
}
12971297

1298-
# if _LIBCPP_STD_VER < 26
1298+
# if _LIBCPP_STD_VER >= 26
12991299
template < class _Tp, class _Up>
13001300
# else
13011301
template <
@@ -1313,7 +1313,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<(const _Tp& __v, const optional<_U
13131313
return static_cast<bool>(__x) ? __v < *__x : false;
13141314
}
13151315

1316-
# if _LIBCPP_STD_VER < 26
1316+
# if _LIBCPP_STD_VER >= 26
13171317
template < class _Tp, class _Up>
13181318
# else
13191319
template <
@@ -1331,7 +1331,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(const optional<_Tp>& __x, const
13311331
return static_cast<bool>(__x) ? *__x <= __v : true;
13321332
}
13331333

1334-
# if _LIBCPP_STD_VER < 26
1334+
# if _LIBCPP_STD_VER >= 26
13351335
template < class _Tp, class _Up>
13361336
# else
13371337
template <
@@ -1349,7 +1349,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator<=(const _Tp& __v, const optional<_
13491349
return static_cast<bool>(__x) ? __v <= *__x : false;
13501350
}
13511351

1352-
# if _LIBCPP_STD_VER < 26
1352+
# if _LIBCPP_STD_VER >= 26
13531353
template < class _Tp, class _Up>
13541354
# else
13551355
template <
@@ -1367,7 +1367,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(const optional<_Tp>& __x, const _
13671367
return static_cast<bool>(__x) ? *__x > __v : false;
13681368
}
13691369

1370-
# if _LIBCPP_STD_VER < 26
1370+
# if _LIBCPP_STD_VER >= 26
13711371
template < class _Tp, class _Up>
13721372
# else
13731373
template <
@@ -1385,7 +1385,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator>(const _Tp& __v, const optional<_U
13851385
return static_cast<bool>(__x) ? __v > *__x : true;
13861386
}
13871387

1388-
# if _LIBCPP_STD_VER < 26
1388+
# if _LIBCPP_STD_VER >= 26
13891389
template < class _Tp, class _Up>
13901390
# else
13911391
template <
@@ -1403,7 +1403,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr bool operator>=(const optional<_Tp>& __x, const
14031403
return static_cast<bool>(__x) ? *__x >= __v : false;
14041404
}
14051405

1406-
# if _LIBCPP_STD_VER < 26
1406+
# if _LIBCPP_STD_VER >= 26
14071407
template < class _Tp, class _Up>
14081408
# else
14091409
template <

0 commit comments

Comments
 (0)