[libc++][NFC] Use struct instead of class for ranges::end

This is consistent with what we do elsewhere.
This commit is contained in:
Louis Dionne 2022-03-22 15:34:48 -04:00
parent 4841dab4af
commit 129504014a
1 changed files with 1 additions and 2 deletions

View File

@ -128,8 +128,7 @@ namespace __end {
{ _LIBCPP_AUTO_CAST(end(__t)) } -> sentinel_for<iterator_t<_Tp>>; { _LIBCPP_AUTO_CAST(end(__t)) } -> sentinel_for<iterator_t<_Tp>>;
}; };
class __fn { struct __fn {
public:
template <class _Tp, size_t _Np> template <class _Tp, size_t _Np>
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[_Np]) const noexcept [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[_Np]) const noexcept
requires (sizeof(_Tp) >= 0) // Disallow incomplete element types. requires (sizeof(_Tp) >= 0) // Disallow incomplete element types.