From Jason Turner

[fs.path.assign]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpr2692rm6/{from.md → to.md} +51 -0
tmp/tmpr2692rm6/{from.md → to.md} RENAMED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### `path` assignments <a id="fs.path.assign">[[fs.path.assign]]</a>
2
+
3
+ ``` cpp
4
+ path& operator=(const path& p);
5
+ ```
6
+
7
+ *Effects:* If `*this` and `p` are the same object, has no effect.
8
+ Otherwise, sets both respective pathnames of `*this` to the respective
9
+ pathnames of `p`.
10
+
11
+ *Returns:* `*this`.
12
+
13
+ ``` cpp
14
+ path& operator=(path&& p) noexcept;
15
+ ```
16
+
17
+ *Effects:* If `*this` and `p` are the same object, has no effect.
18
+ Otherwise, sets both respective pathnames of `*this` to the respective
19
+ pathnames of `p`. `p` is left in a valid but unspecified state.
20
+
21
+ [*Note 1*: A valid implementation is `swap(p)`. — *end note*]
22
+
23
+ *Returns:* `*this`.
24
+
25
+ ``` cpp
26
+ path& operator=(string_type&& source);
27
+ path& assign(string_type&& source);
28
+ ```
29
+
30
+ *Effects:* Sets the pathname in the detected-format of `source` to the
31
+ original value of `source`. `source` is left in a valid but unspecified
32
+ state.
33
+
34
+ *Returns:* `*this`.
35
+
36
+ ``` cpp
37
+ template <class Source>
38
+ path& operator=(const Source& source);
39
+ template <class Source>
40
+ path& assign(const Source& source);
41
+ template <class InputIterator>
42
+ path& assign(InputIterator first, InputIterator last);
43
+ ```
44
+
45
+ *Effects:* Let `s` be the effective range of `source` ([[fs.path.req]])
46
+ or the range \[`first`, `last`), with the encoding converted if
47
+ required ([[fs.path.cvt]]). Finds the detected-format of
48
+ `s` ([[fs.path.fmt.cvt]]) and sets the pathname in that format to `s`.
49
+
50
+ *Returns:* `*this`.
51
+