[libcxx-commits] [libcxx] [libc++] Forward more algorithms to the classic algorithms (PR #114674)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 4 08:36:50 PST 2024
================
@@ -216,6 +216,9 @@ struct _IterOps<_ClassicAlgPolicy> {
}
};
+template <class _AlgPolicy, class _Iter>
+using __policy_iter_diff_t = typename _IterOps<_AlgPolicy>::template __difference_type<_Iter>;
----------------
philnik777 wrote:
The problem is that you also have to mention `typename _IterOps<_AlgPolicy>::template __difference_type<_Iter>` in the declaration, which is really not easy to read IMO. FWIW I think we may want to rethink the `iterator_operations.h`, since it's become a quite ugly catch-all of different operations.
https://github.com/llvm/llvm-project/pull/114674
More information about the libcxx-commits
mailing list