operator-(ranges::adjacent_transform_view::sentinel)
template< bool OtherConst >
requires std::sized_sentinel_for</*inner-sentinel*/<Const>,
/*inner-iterator*/<OtherConst>>
friend constexpr
ranges::range_difference_t</*maybe-const*/<OtherConst, InnerView>>
operator-( const /*iterator*/<OtherConst>& x, const /*sentinel*/& y );
| (1) | (since C++23) |
template< bool OtherConst >
requires std::sized_sentinel_for</*inner-sentinel*/<Const>,
/*inner-iterator*/<OtherConst>>
friend constexpr
ranges::range_difference_t</*maybe-const*/<OtherConst, InnerView>>
operator-( const /*sentinel*/& y, const /*iterator*/<OtherConst>& x );
| (2) | (since C++23) |
Вычисляет расстояние между итератором x и точкой останова y.
Эти шаблоны функций не видны для обычного неквалифицированного или квалифицированного поиска и могут быть найдены только с помощью поиска по зависимости от аргументов, когда adjacent_transform_view::sentinel является связанным классом аргументов.
Параметры
| x | - | итератор |
| y | - | точка останова |
Значение результата
Расстояние между итератором и точкой останова.
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/adjacent_transform_view/sentinel/operator-