1.5 KiB
1.5 KiB
[ios.openmode]
31 Input/output library [input.output]
31.5 Iostreams base classes [iostreams.base]
31.5.2 Class ios_base [ios.base]
31.5.2.2 Types [ios.types]
31.5.2.2.4 Type ios_base::openmode [ios.openmode]
using openmode = T3;
The typeopenmode is a bitmask type ([bitmask.types]).
It contains the elements indicated in Table 139.
Table 139 — openmode effects [tab:ios.openmode]
| ð Element |
Effect(s) if set |
|---|---|
| ð app |
seek to end before each write |
| ð ate |
open and seek to end immediately after opening |
| ð binary |
perform input and output in binary mode (as opposed to text mode) |
| ð in |
open for input |
| ð noreplace |
open in exclusive mode |
| ð out |
open for output |
| ð trunc |
truncate an existing stream when opening |