⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_4635.htm

📁 C++标准库 C++标准库 C++标准库 C++标准库
💻 HTM
字号:
<HTML><HEAD><TITLE>Appendix A: Appendix: Implementation Dependencies and Open Issues in the Standard</TITLE></HEAD><BODY><A HREF="ug2.htm"><IMG SRC="images/banner.gif"></A><BR><A HREF="dif_0058.htm"><IMG SRC="images/prev.gif"></A><A HREF="booktoc2.htm"><IMG SRC="images/toc.gif"></A><BR><STRONG>Click on the banner to return to the user guide home page.</STRONG><H1>Appendix A: Implementation Dependencies and Open Issues in the Standard</H1><P><B>Implementation-Dependent Behavior</B></P><OL><LI><P>The memory allocation strategy of <SAMP>operator&#60;&#60;()</SAMP> for strings is not specified; in other words, the strategy is implementation-dependent.</P></LI><LI><P>The behavior of an input file stream's <SAMP>sync()</SAMP> function is  implementation-dependent.  An input file stream's <SAMP>sync()</SAMP> function should synchronize the input sequence with the input file; that is, it should refill the buffer from the current position on, or the draft should state exactly what the <SAMP>sync()</SAMP> function does.</P></LI><LI><P>It is unspecified--that is, implementation-dependent--how <SAMP>pword()</SAMP> and <SAMP>iword()</SAMP> indicate failure.  Possible choices could be throwing a <SAMP>bad_alloc</SAMP> exception, or setting <SAMP>failbit</SAMP>. </P><P>Rogue Wave's implementation uses operator <SAMP>new</SAMP> for allocating these arrays, which means that <SAMP>bad_alloc</SAMP> will be thrown.</P></LI><LI><P>It is unspecified what happens if <SAMP>iword()</SAMP> or <SAMP>pword()</SAMP> are provided with an index that was not returned by a previous call to <SAMP>xalloc()</SAMP>. </P><P>Rogue Wave's implementation allocates as much memory as necessary to provide the requested array entry.</P></LI></OL><P><B>Open Issues in the Standard</B></P></LI><OL><LI><P>A call to a stream's <SAMP>imbue()</SAMP> function changes the stream buffer's locale object as well.  This is a problem when two streams share a stream buffer and the streams' locales have different code conversion facets.</P></LI><LI><P>It is unspecified when calls to a stream's <SAMP>imbue()</SAMP> function are allowed.  This is especially crucial when code conversion needs to be performed. </P></LI></OL><HR><A HREF="dif_0058.htm"><IMG SRC="images/prev.gif"></A> <A HREF="booktoc2.htm"><IMG SRC="images/toc.gif"></A><P>&copy;Copyright 1996, Rogue Wave Software, Inc.</P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -