[ios.openmode] (original) (raw)
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 typeopenmodeis 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 |