[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Stream-Based Classes

The Metrowerks Standard Library (MSL) C++ stream-based classes will initialize several instances of direct and indirect objects. When code size is critical, do not use any stream-based classes. The stream-based classes include standard input (cin), standard output (cout), and standard error (cerr). There are wide-character equivalents for the normal input and output routines as well. Unless there is a great need for these classes, use standard C input and output functions instead.

In addition to the standard C++ stream classes, there are string streams for in-core formatting that will also evoke a heavy overhead and should be avoided. If size is critical, use C's sprintf or sscanf functions instead.

The proposal for Embedded C++ does not allow for templatized classes or functions. MSL is compliant with the ANSI/ISO proposed standards that are based on templates.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000