[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_;

1

#

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