Skip to content

Commit 87b5629

Browse files
committed
add missing CONSTEXPR26 macros
1 parent e9ec615 commit 87b5629

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libcxx/include/__algorithm/inplace_merge.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ class __invert // invert the sense of a comparison
4747
_Predicate __p_;
4848

4949
public:
50-
_LIBCPP_HIDE_FROM_ABI __invert() {}
50+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __invert() {}
5151

52-
_LIBCPP_HIDE_FROM_ABI explicit __invert(_Predicate __p) : __p_(__p) {}
52+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 explicit __invert(_Predicate __p) : __p_(__p) {}
5353

5454
template <class _T1>
55-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _T1& __x) {
55+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _T1& __x) {
5656
return !__p_(__x);
5757
}
5858

5959
template <class _T1, class _T2>
60-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _T1& __x, const _T2& __y) {
60+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _T1& __x, const _T2& __y) {
6161
return __p_(__y, __x);
6262
}
6363
};
@@ -69,7 +69,7 @@ template <class _AlgPolicy,
6969
class _InputIterator2,
7070
class _Sent2,
7171
class _OutputIterator>
72-
_LIBCPP_HIDE_FROM_ABI void __half_inplace_merge(
72+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void __half_inplace_merge(
7373
_InputIterator1 __first1,
7474
_Sent1 __last1,
7575
_InputIterator2 __first2,
@@ -94,7 +94,7 @@ _LIBCPP_HIDE_FROM_ABI void __half_inplace_merge(
9494
}
9595

9696
template <class _AlgPolicy, class _Compare, class _BidirectionalIterator>
97-
_LIBCPP_HIDE_FROM_ABI void __buffered_inplace_merge(
97+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void __buffered_inplace_merge(
9898
_BidirectionalIterator __first,
9999
_BidirectionalIterator __middle,
100100
_BidirectionalIterator __last,
@@ -125,7 +125,7 @@ _LIBCPP_HIDE_FROM_ABI void __buffered_inplace_merge(
125125
}
126126

127127
template <class _AlgPolicy, class _Compare, class _BidirectionalIterator>
128-
void __inplace_merge(
128+
_LIBCPP_CONSTEXPR_SINCE_CXX26 void __inplace_merge(
129129
_BidirectionalIterator __first,
130130
_BidirectionalIterator __middle,
131131
_BidirectionalIterator __last,

0 commit comments

Comments
 (0)