From Jason Turner

[fs.op.file.size]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp50pnybhh/{from.md → to.md} +22 -0
tmp/tmp50pnybhh/{from.md → to.md} RENAMED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### File size <a id="fs.op.file.size">[[fs.op.file.size]]</a>
2
+
3
+ ``` cpp
4
+ uintmax_t file_size(const path& p);
5
+ uintmax_t file_size(const path& p, error_code& ec) noexcept;
6
+ ```
7
+
8
+ *Effects:* If `exists(p)` is `false`, an error is
9
+ reported [[fs.err.report]].
10
+
11
+ *Returns:*
12
+
13
+ - If `is_regular_file(p)`, the size in bytes of the file `p` resolves
14
+ to, determined as if by the value of the POSIX `stat` class member
15
+ `st_size` obtained as if by POSIX `stat()`.
16
+ - Otherwise, the result is *implementation-defined*.
17
+
18
+ The signature with argument `ec` returns `static_cast<uintmax_t>(-1)` if
19
+ an error occurs.
20
+
21
+ *Throws:* As specified in  [[fs.err.report]].
22
+