Code Samples

CODE EXAMPLE 6-1 small spaceExample of Local Type as Template Argument Problem

CODE EXAMPLE 6-2 small spaceExample of Friend Declaration Problem

CODE EXAMPLE 7-1 small spaceRedundant Definition Entry

CODE EXAMPLE 7-2 small spaceDefinition of Static Data Members and Use of Simple Names

CODE EXAMPLE 7-3 small spaceTemplate Member Function Definition

CODE EXAMPLE 7-4 small spaceDefinition of Template Functions in Different Source Files

CODE EXAMPLE 7-5 small space nocheck Option

CODE EXAMPLE 7-6 small space special Entry

CODE EXAMPLE 7-7 small spaceExample of When special Entry Should Be Used

CODE EXAMPLE 7-8 small spaceOverloading special Entries

CODE EXAMPLE 7-9 small spaceSpecializing a Template Class

CODE EXAMPLE 7-10 small spaceSpecializing a Static Template Class Member

CODE EXAMPLE 11-1 small spaceChecking Error State

CODE EXAMPLE 11-2 small spaceCalling gcount

CODE EXAMPLE 11-3 small spaceUser-Defined I/O Operations

CODE EXAMPLE 11-4 small spaceDisabling MT-Safety

CODE EXAMPLE 11-5 small spaceSwitching to MT-Unsafe

CODE EXAMPLE 11-6 small spaceUsing Synchronization With MT-Unsafe Objects

CODE EXAMPLE 11-7 small spaceNew Classes

CODE EXAMPLE 11-8 small spaceNew Class Hierarchy

CODE EXAMPLE 11-9 small spaceNew Functions

CODE EXAMPLE 11-10 small spaceExample of Using Locking Operations

CODE EXAMPLE 11-11 small spaceMaking I/O Operation and Error Checking Atomic

CODE EXAMPLE 11-12 small spaceDestroying a Shared Object

CODE EXAMPLE 11-13 small spaceUsing iostream Objects in an MT-Safe Way

CODE EXAMPLE 14-1 small space string Extraction Operator

CODE EXAMPLE A-1 small spacePreprocessor Example Program foo.cc

CODE EXAMPLE A-2 small spacePreprocessor Output of foo.cc Using -E Option