From Jason Turner

[range.utility.conv.adaptors]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzbwbcz1t/{from.md → to.md} +23 -0
tmp/tmpzbwbcz1t/{from.md → to.md} RENAMED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### `ranges::to` adaptors <a id="range.utility.conv.adaptors">[[range.utility.conv.adaptors]]</a>
2
+
3
+ ``` cpp
4
+ template<class C, class... Args> requires (!view<C>)
5
+ constexpr auto to(Args&&... args);
6
+ template<template<class...> class C, class... Args>
7
+ constexpr auto to(Args&&... args);
8
+ ```
9
+
10
+ *Mandates:* For the first overload, `C` is a cv-unqualified class type.
11
+
12
+ *Returns:* A range adaptor closure object [[range.adaptor.object]] `f`
13
+ that is a perfect forwarding call
14
+ wrapper [[term.perfect.forwarding.call.wrapper]] with the following
15
+ properties:
16
+
17
+ - It has no target object.
18
+ - Its bound argument entities `bound_args` consist of objects of types
19
+ `decay_t<Args>...` direct-non-list-initialized with
20
+ `std::forward<Args>(args)...`, respectively.
21
+ - Its call pattern is `to<C>(r, bound_args...)`, where `r` is the
22
+ argument used in a function call expression of `f`.
23
+