Difference between revisions of "cpp/io/ios base/openmode"
From cppreference.com
m (Text replace - "{{example cpp" to "{{example") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/io/ios_base/title | openmode}} | {{cpp/io/ios_base/title | openmode}} | ||
− | {{cpp/io/ios_base/ | + | {{cpp/io/ios_base/navbar}} |
{{ddcl list begin}} | {{ddcl list begin}} | ||
{{ddcl list item | | {{ddcl list item | |
Revision as of 12:53, 15 June 2012
Template:ddcl list begin <tr class="t-dcl ">
<td class="t-dcl-nopad">typedef /*implementation defined*/ openmode;
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">static constexpr openmode app = /*implementation defined*/
</td>
static constexpr openmode binary = /*implementation defined*/
static constexpr openmode in = /*implementation defined*/
static constexpr openmode out = /*implementation defined*/
static constexpr openmode trunc = /*implementation defined*/
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Specifies available file open flags. It is a bitmask type, the following constants are defined:
Constant | Explanation |
app | seek to the end of stream before each write |
binary | open in binary mode |
in | open for reading |
out | open for writing |
trunc | discard the contents of the stream when opening |
ate | seek to the end of stream immediately after open |
noreplace (C++23) | open in exclusive mode |
Example
This section is incomplete Reason: no example |