From Jason Turner

[fs.op.resize.file]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp8zyi47wn/{from.md → to.md} +12 -0
tmp/tmp8zyi47wn/{from.md → to.md} RENAMED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Resize file <a id="fs.op.resize.file">[[fs.op.resize.file]]</a>
2
+
3
+ ``` cpp
4
+ void resize_file(const path& p, uintmax_t new_size);
5
+ void resize_file(const path& p, uintmax_t new_size, error_code& ec) noexcept;
6
+ ```
7
+
8
+ *Effects:* Causes the size that would be returned by `file_size(p)` to
9
+ be equal to `new_size`, as if by POSIX `truncate()`.
10
+
11
+ *Throws:* As specified in  [[fs.err.report]].
12
+