|
_NODISCARD constexpr auto size()
|
|
requires forward_range<_Derived> && sized_sentinel_for<sentinel_t<_Derived>, iterator_t<_Derived>>
|
|
{
|
|
auto& _Self = _Cast();
|
|
return _STD _To_unsigned_like(_RANGES end(_Self) - _RANGES begin(_Self));
|
|
}
|
|
|
|
_NODISCARD constexpr auto size() const
|
|
requires forward_range<const _Derived>
|
|
&& sized_sentinel_for<sentinel_t<const _Derived>, iterator_t<const _Derived>>
|
|
{
|
|
auto& _Self = _Cast();
|
|
return _STD _To_unsigned_like(_RANGES end(_Self) - _RANGES begin(_Self));
|
|
}
|
|
<Type Name="std::ranges::view_interface<*>"> |
|
<DisplayString>{{ size={size()} }}</DisplayString> |
|
<Expand> |
|
<Item Optional="true" Name="empty">empty()</Item> |
|
<Item Optional="true" Name="front">front()</Item> |
|
<Item Optional="true" Name="back">back()</Item> |
|
<Item Optional="true" Name="data">data()</Item> |
|
</Expand> |
|
</Type> |
Reported by Xiang Fan (@xiangfan-ms):
The 'size' member function doesn't always exist in the specialization. When this happens, the entry will be ignored by the debugger.
Present since this visualizer was added by #2191 on 2022-07-11 in VS 2022 17.4.
STL/stl/inc/xutility
Lines 3766 to 3779 in ef1d621
STL/stl/debugger/STL.natvis
Lines 2004 to 2012 in ef1d621
Reported by Xiang Fan (@xiangfan-ms):
Present since this visualizer was added by #2191 on 2022-07-11 in VS 2022 17.4.