Jump to content

C++03: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 24: Line 24:
[[Category:C++]]
[[Category:C++]]
[[Category:Programming language standards]]
[[Category:Programming language standards]]
{{compu-prog-stub}}
{{Prog-lang-stub}}

Revision as of 00:48, 29 November 2014

C++03 refers to a version of the C++ programming language as defined in standard ISO/IEC 14882:2003.

This version of the C++ programming language standard replaced the standard referred to as C++98, which represented the language's first international standard. In essence, C++03 does not provide any changes to the core language; however, it addresses many defects in the language description of the previous version of the standard, and it significantly expands the size of the standard library.[1]

Among the more noteworthy changes to existing parts of the standard library, C++03 added the requirement that elements in a vector are stored contiguously.[2] 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 previously required by the standard document.

See also

References

  1. ^ "Bjarne Stroustrup's FAQ – What is the difference between C++98 and C++03?". Bjarne Stroustrup's homepage.
  2. ^ Herb, Sutter (2002). More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions. Boston: Pearson Education, Inc. p. 48. ISBN 0-201-70434-X.
  • British Standards Institute (2003-10-01). The C++ Standard: Incorporating Technical Corrigendum No. 1. John Wiley & Sons, Inc. ISBN 978-0-470-84674-2.