• Certain standard libraries are completely rewritten versions of the pre-standard libraries.. • The standard libraries have unique names that.[r]
(1)Session 10 - A Few More Topics
(2)Objectives
• The ISO Standard
– Libraries
– Namespaces
– Insufficient Space – Casting
(3)Objectives…
• Design Principles
(4)The ISO Standard
• The official standard for the C++ language is the ISO/IEC 14882 standard
• The standard added new features, removed some old features and deprecated some other old
features
• New features:
– a fully rewritten stream library, – Namespaces,
– a string class,
– casting syntax and
(5)Libraries(1)
• Certain standard libraries are completely rewritten versions of the pre-standard libraries
• The standard libraries have unique names that
distinguish the libraries from the pre-standard ones
• The standard header files have names that are prefaced by the character c These names not include the .h
suffix found with the pre-standard versions This
convention applies only where the standard introduced only minor changes The standard did not apply the c
prefix notation to those libraries that were rewritten to any significant extent
• For example:
(6)Relationships(3)
• Aggregation
– An aggregation is a stronger form of
(7)Summary
• The ISO Standard
– Libraries
– Namespaces
– Insufficient Space – Casting
– Implicit – Explicit
• Design Principles
– Design Principles – Object Definition – Relationships