Skip to content

Commit f04f69e

Browse files
Drive-by: Consistently mark __inplace_merge::__inplace_merge_impl
This function template is only called by other functions that becomes constexpr since C++26, and it itself calls `std::__inplace_merge` that is constexpr since C++26. So it's better to mark it `_LIBCPP_CONSTEXPR_SINCE_CXX26`.
1 parent b18b399 commit f04f69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__algorithm/ranges_inplace_merge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
4141
namespace ranges {
4242
struct __inplace_merge {
4343
template <class _Iter, class _Sent, class _Comp, class _Proj>
44-
_LIBCPP_HIDE_FROM_ABI static constexpr auto
44+
_LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR_SINCE_CXX26 auto
4545
__inplace_merge_impl(_Iter __first, _Iter __middle, _Sent __last, _Comp&& __comp, _Proj&& __proj) {
4646
auto __last_iter = ranges::next(__middle, __last);
4747
std::__inplace_merge<_RangeAlgPolicy>(

0 commit comments

Comments
 (0)