[libcxx-commits] [libcxx] 1295040 - [libc++][NFC] Use struct instead of class for ranges::end

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 22 12:37:04 PDT 2022


Author: Louis Dionne
Date: 2022-03-22T15:36:47-04:00
New Revision: 129504014a94e08c7f7353d434d286164f106e1e

URL: https://github.com/llvm/llvm-project/commit/129504014a94e08c7f7353d434d286164f106e1e
DIFF: https://github.com/llvm/llvm-project/commit/129504014a94e08c7f7353d434d286164f106e1e.diff

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

This is consistent with what we do elsewhere.

Added: 
    

Modified: 
    libcxx/include/__ranges/access.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__ranges/access.h b/libcxx/include/__ranges/access.h
index ad5a874e07b53..0f1cca033a23e 100644
--- a/libcxx/include/__ranges/access.h
+++ b/libcxx/include/__ranges/access.h
@@ -128,8 +128,7 @@ namespace __end {
       { _LIBCPP_AUTO_CAST(end(__t)) } -> sentinel_for<iterator_t<_Tp>>;
     };
 
-  class __fn {
-  public:
+  struct __fn {
     template <class _Tp, size_t _Np>
     [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[_Np]) const noexcept
       requires (sizeof(_Tp) >= 0)  // Disallow incomplete element types.


        


More information about the libcxx-commits mailing list