14 M_RDWR = M_READ|M_WRITE,
19 inline Mode operator|(Mode m, Mode n)
20 { return Mode(static_cast<int>(m)|static_cast<int>(n)); }
22 inline Mode operator&(Mode m, Mode n)
23 { return Mode(static_cast<int>(m)&static_cast<int>(n)); }
25 inline Mode operator~(Mode m)
26 { return Mode(~static_cast<int>(m)); }
28 inline void adjust_mode(Mode &m, Mode f, bool b)
29 { m = b ? (m|f) : (m&~f); }
32 class invalid_access: public std::logic_error
36 ~invalid_access() throw() { }