From Jason Turner

[move.sent.ops]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpckzuzxjl/{from.md → to.md} +38 -0
tmp/tmpckzuzxjl/{from.md → to.md} RENAMED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Operations <a id="move.sent.ops">[[move.sent.ops]]</a>
2
+
3
+ ``` cpp
4
+ constexpr move_sentinel();
5
+ ```
6
+
7
+ *Effects:* Value-initializes `last`. If
8
+ `is_trivially_default_constructible_v<S>` is `true`, then this
9
+ constructor is a `constexpr` constructor.
10
+
11
+ ``` cpp
12
+ constexpr explicit move_sentinel(S s);
13
+ ```
14
+
15
+ *Effects:* Initializes `last` with `std::move(s)`.
16
+
17
+ ``` cpp
18
+ template<class S2>
19
+ requires convertible_to<const S2&, S>
20
+ constexpr move_sentinel(const move_sentinel<S2>& s);
21
+ ```
22
+
23
+ *Effects:* Initializes `last` with `s.last`.
24
+
25
+ ``` cpp
26
+ template<class S2>
27
+ requires assignable_from<S&, const S2&>
28
+ constexpr move_sentinel& operator=(const move_sentinel<S2>& s);
29
+ ```
30
+
31
+ *Effects:* Equivalent to: `last = s.last; return *this;`
32
+
33
+ ``` cpp
34
+ constexpr S base() const;
35
+ ```
36
+
37
+ *Returns:* `last`.
38
+