[libcxx-commits] [PATCH] D102037: [libcxx][views] Add drop_view.

Tim Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 21 17:13:08 PDT 2021


tcanens added inline comments.


================
Comment at: libcxx/include/__ranges/drop_view.h:37
+
+    static constexpr bool _UseCache = forward_range<_View> && !random_access_range<_View>;
+    using _Cache = optional<iterator_t<_View>>;
----------------
The cache needs to be used for random access ranges too unless the range is also sized.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102037/new/

https://reviews.llvm.org/D102037



More information about the libcxx-commits mailing list