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 3129b5d commit e64a238Copy full SHA for e64a238
contrib/libs/cxxsupp/libcxx/include/__numeric/midpoint.h
@@ -52,13 +52,8 @@ _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
52
}
53
54
55
-template <class _TPtr>
56
-_LIBCPP_INLINE_VISIBILITY constexpr
57
-enable_if_t<is_pointer_v<_TPtr>
58
- && is_object_v<remove_pointer_t<_TPtr>>
59
- && ! is_void_v<remove_pointer_t<_TPtr>>
60
- && (sizeof(remove_pointer_t<_TPtr>) > 0), _TPtr>
61
-midpoint(_TPtr __a, _TPtr __b) noexcept
+template <class _Tp, enable_if_t<is_object_v<_Tp> && !is_void_v<_Tp> && (sizeof(_Tp) > 0), int> = 0>
+_LIBCPP_HIDE_FROM_ABI constexpr _Tp* midpoint(_Tp* __a, _Tp* __b) noexcept
62
{
63
return __a + _VSTD::midpoint(ptrdiff_t(0), __b - __a);
64
0 commit comments