C++ åèæå
- C++11
- C++14
- C++17
- C++20
- C++ ç¼è¯å¨æ¯ææ åµè¡¨
- ç¬ç«ä¸å®¿ä¸»å®ç°
- C++ è¯è¨
- C++ å ³é®è¯
- é¢å¤çå¨
- C++ æ ååºå¤´æä»¶
- å ·åè¦æ±
- åè½ç¹æ§æµè¯ (C++20)
- å·¥å ·åº
- ç±»åæ¯æï¼åºæ¬ç±»åãRTTIãç±»åç¹æ§ï¼
- æ¦å¿µåº (C++20)
- é误å¤ç
- 卿å å管ç
- æ¥æåæ¶é´å·¥å ·
- å符串åº
- 容å¨åº
- è¿ä»£å¨åº
- èå´åº (C++20)
- ç®æ³åº
- æ°å¼åº
- è¾å ¥/è¾åºåº
- è¾å ¥/è¾åºæçºµç¬¦
- std::ios_base
- std::ios_base::failure
- std::ios_base::event_callback
- std::ios_base::seekdir
- std::ios_base::event
- std::ios_base::fmtflags
- std::ios_base::iostate
- std::ios_base::iword
- std::ios_base::pword
- std::ios_base::register_callback
- std::ios_base::sync_with_stdio
- std::ios_base::Init
- std::ios_base::openmode
- std::ios_base::precision
- std::ios_base::width
- std::ios_base::imbue
- std::ios_base::getloc
- std::ios_base::xalloc
- std::ios_base::ios_base
- std::ios_base::~ios_base
- std::ios_base::flags
- std::ios_base::setf
- std::ios_base::unsetf
- C 飿 ¼æä»¶è¾å ¥/è¾åº
- std::basic_streambuf
- std::basic_filebuf
- std::basic_stringbuf
- std::strstreambuf
- std::basic_syncbuf
- std::basic_ios
- std::basic_istream
- std::basic_osyncstream
- std::basic_ostream
- std::basic_iostream
- std::basic_ifstream
- std::basic_ofstream
- std::basic_fstream
- std::basic_istringstream
- std::basic_ostringstream
- std::basic_stringstream
- std::istrstream
- std::ostrstream
- std::strstream
- std::streamoff
- std::streamsize
- std::fpos
- std::iostream_category
- std::io_errc
- std::cin, std::wcin
- std::cout, std::wcout
- std::cerr, std::wcerr
- std::clog, std::wclog
- 注é
- æä»¶ç³»ç»åº
- æ¬å°ååº
- æ£å表达å¼åº
- ååæä½åº
- çº¿ç¨æ¯æåº
- å®éªæ§ C++ ç¹æ§
- æç¨çèµæº
- ç´¢å¼
- std 符å·ç´¢å¼
- åç¨æ¯æ (C++20)
- C++ å ³é®è¯
ä½ç½®ï¼é¦é¡µ > C++ åèæå >è¾å ¥/è¾åºåº >std::ios_base > std::ios_base::openmode
std::ios_base::openmode
| typedef /*implementation defined*/ openmode; |
||
| static constexpr openmode app = /*implementation defined*/ static constexpr openmode binary = /*implementation defined*/ |
||
æå®å¯ç¨çæä»¶æå¼æ å¿ã宿¯ä½æ©ç ç±»å (BitmaskType) ï¼ä¸å常éå¾å°å®ä¹ï¼
| Â | |
| 常é | è§£é |
| app | æ¯æ¬¡åå ¥å寻ä½å°æµç»å°¾ |
| binary | 以äºè¿å¶æ¨¡å¼æå¼ |
| in | 为读æå¼ |
| out | 为åæå¼ |
| trunc | 卿弿¶è弿µçå 容 |
| ate | æå¼åç«å³å¯»ä½å°æµç»å°¾ |
示ä¾
| æ¬èæªå®æ åå ï¼ææ ç¤ºä¾ |
åé
| æå¼æä»¶å¹¶é
ç½®å®ä¸ºå
³èå符åºå ( std::basic_filebuf<CharT,Traits> çå
¬å¼æå彿°) | |
| æé ä¸ä¸ª basic_stringbuf 对象 ( std::basic_stringbuf<CharT,Traits,Allocator> çå
¬å¼æå彿°) |