57 const bool append = (mode & std::ios_base::app) != 0;
58 const bool binary = (mode & std::ios_base::binary) != 0;
59 const bool input = (mode & std::ios_base::in) != 0;
60 const bool output = (mode & std::ios_base::out) != 0;
61 const bool truncate = (mode & std::ios_base::trunc) != 0;
68 else if(output && !
input)
70 *cursor++ = append ?
'a' :
'w';
72 else if(
input && output)