From Jason Turner

[alg.starts.with]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjdk6fuja/{from.md → to.md} +22 -0
tmp/tmpjdk6fuja/{from.md → to.md} RENAMED
@@ -18,5 +18,27 @@ template<input_range R1, input_range R2, class Pred = ranges::equal_to, class Pr
18
  ``` cpp
19
  ranges::mismatch(std::move(first1), last1, std::move(first2), last2,
20
  pred, proj1, proj2).in2 == last2
21
  ```
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ``` cpp
19
  ranges::mismatch(std::move(first1), last1, std::move(first2), last2,
20
  pred, proj1, proj2).in2 == last2
21
  ```
22
 
23
+ ``` cpp
24
+ template<execution-policy Ep, random_access_iterator I1, sized_sentinel_for<I1> S1,
25
+ random_access_iterator I2, sized_sentinel_for<I2> S2,
26
+ class Pred = ranges::equal_to, class Proj1 = identity, class Proj2 = identity>
27
+ requires indirectly_comparable<I1, I2, Pred, Proj1, Proj2>
28
+ bool ranges::starts_with(Ep&& exec, I1 first1, S1 last1, I2 first2, S2 last2,
29
+ Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {});
30
+ template<execution-policy Ep, sized-random-access-range R1,
31
+ sized-random-access-range R2, class Pred = ranges::equal_to,
32
+ class Proj1 = identity, class Proj2 = identity>
33
+ requires indirectly_comparable<iterator_t<R1>, iterator_t<R2>, Pred, Proj1, Proj2>
34
+ bool ranges::starts_with(Ep&& exec, R1&& r1, R2&& r2,
35
+ Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {});
36
+ ```
37
+
38
+ *Returns:*
39
+
40
+ ``` cpp
41
+ ranges::mismatch(std::forward<Ep>(exec), std::move(first1), last1, std::move(first2),
42
+ last2, pred, proj1, proj2).in2 == last2
43
+ ```
44
+