Home Segments Index Top Previous Next

769: Mainline

To convert the visual aids in Segment 768 into C++ templates, you must first add a prefix to each definition. That prefix announces that a template is coming and identifies one or more template parameters between brackets. In the following examples, the parameters have long names so that they are easy to understand:

template  
class link { 
  ... 
}; 
template  
class header { 
  ... 
};