From Jason Turner

[fs.op.resize_file]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpe04y7wz0/{from.md → to.md} +13 -0
tmp/tmpe04y7wz0/{from.md → to.md} RENAMED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ *Postconditions:* `file_size(p) == new_size`.
9
+
10
+ *Throws:* As specified in  [[fs.err.report]].
11
+
12
+ *Remarks:* Achieves its postconditions as if by POSIX `truncate()`.
13
+