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 ef1198b commit 0b96a92Copy full SHA for 0b96a92
libcxx/include/__iterator/distance.h
@@ -42,8 +42,8 @@ using __iter_distance_t _LIBCPP_NODEBUG = typename iterator_traits<_Iter>::diffe
42
#endif
43
44
template <class _InputIter, class _Sent>
45
-inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 __iter_distance_t<_InputIter>
46
-__distance(_InputIter __first, _Sent __last) {
+inline _LIBCPP_HIDE_FROM_ABI
+_LIBCPP_CONSTEXPR_SINCE_CXX17 __iter_distance_t<_InputIter> __distance(_InputIter __first, _Sent __last) {
47
__iter_distance_t<_InputIter> __r(0);
48
for (; __first != __last; ++__first)
49
++__r;
0 commit comments