[Mlir-commits] [mlir] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

Konstantin Varlamov llvmlistbot at llvm.org
Fri Oct 13 18:46:26 PDT 2023


================
@@ -214,6 +214,19 @@ namespace ranges {
     constexpr ranges::minmax_element_result<borrowed_iterator_t<R>>
       minmax_element(R&& r, Comp comp = {}, Proj proj = {});                                              // since C++20
 
+  template<forward_iterator I1, sentinel_for<I1> S1, forward_iterator I2,
+    sentinel_for<I2> S2, class Pred = ranges::equal_to, class Proj1 = identity,
+    class Proj2 = identity>
----------------
var-const wrote:

Nit: I would strongly suggest copying the code from the Standard as-is for the synopsis, including the formatting (i.e., `class Proj2 = identity>` should be on joined with the previous line, there should be a line break before `forward_iterator I2,`, etc.).

https://github.com/llvm/llvm-project/pull/66963


More information about the Mlir-commits mailing list