We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357f4eb commit c2fc0dcCopy full SHA for c2fc0dc
libcxx/include/__algorithm/shift_left.h
@@ -29,6 +29,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
29
template <class _AlgPolicy, class _Iter, class _Sent>
30
_LIBCPP_HIDE_FROM_ABI constexpr pair<_Iter, _Iter>
31
__shift_left(_Iter __first, _Sent __last, typename _IterOps<_AlgPolicy>::template __difference_type<_Iter> __n) {
32
+ _LIBCPP_ASSERT_UNCATEGORIZED(__n >= 0, "__n must be greater than or equal to 0");
33
+
34
if (__n == 0) {
35
_Iter __end = _IterOps<_AlgPolicy>::next(__first, __last);
36
return {std::move(__first), std::move(__end)};
0 commit comments