请输入您要查询的百科知识:

 

词条 C++03
释义

  1. See also

  2. References

C++03 is a version of an international standard for the programming language C++. It is defined by two standards organizations, the International Standards Organization (ISO) and the International Electrotechnical Commission (IEC), in standard ISO/IEC 14882:2003.

C++03 replaced the prior revision of the C++ standard, called C++98, and was later replaced by C++11. C++03 was primarily a bug fix release for the implementers to ensure greater consistency and portability.[1] This revision addressed 92 core language defect reports,[2] 125 library defect reports,[3] and included only one new language feature: value initialization[4]

Among the more noteworthy defect reports addressed by C++03 was the library defect report 69,[5] whose resolution added the requirement that elements in a vector are stored contiguously.[6] This codifies the common expectation that a C++ std::vector object uses a memory layout similar to an array. While most implementations satisfied this expectation, it was not required by C++98.

See also

  • C++ Technical Report 1 - Additions to the C++03 Standard Library
  • C++: Standardization
  • C++ Standard Library

References

1. ^{{cite web|url=http://www.stroustrup.com/bs_faq.html#C++03 |title=Bjarne Stroustrup's FAQ – What is the difference between C++98 and C++03? |publisher=Bjarne Stroustrup's homepage |dead-url=yes |archiveurl=https://web.archive.org/web/20160206214150/http://www.stroustrup.com/bs_faq.html#C++03 |archivedate=February 6, 2016 }}
2. ^C++ Standard Core Language Issue Index by Status: Issues with "TC1" Status
3. ^C++ Standard Library Issues List: TC1 (125 issues)
4. ^{{Citation | url = http://en.cppreference.com/w/cpp/language/value_initialization| contribution = Value initialization | title = C++ reference | type = wiki}}
5. ^C++ Standard Library Defect Report List: 69. Must elements of a vector be contiguous?
6. ^{{cite book |last= Herb |first= Sutter |authorlink= Herb Sutter |title= More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions |publisher= Pearson Education, Inc. |date= 2002 |location= Boston |page= 48 |url= https://books.google.com/books?id=_1uD7khOQooC&pg=PA48&lpg=PA48&dq=c%2B%2B+%22technical+corrigendum+1%22&source=bl&ots=KDqsgXihrO&sig=L65ISrMvs1w39pqa4RhJFy0H3uU&hl=de&sa=X&ei=bnraUqfmG8LVswbz44DwAw&ved=0CHUQ6AEwCQ#v=snippet&q=%22technical%20corrigendum%201%22&f=false |isbn= 0-201-70434-X}}
  • {{cite book |author= British Standards Institute |title= The C++ Standard: Incorporating Technical Corrigendum No. 1 |publisher= John Wiley & Sons, Inc. |date= 2003-10-01 |isbn= 978-0-470-84674-2}}
{{C++ProLang}}{{Prog-lang-stub}}

2 : C++|Programming language standards

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 0:19:50