26.4 The TEMPLATE METHOD Pattern (cont.)
Example - stream buffers (cont.)
- Consider an output operation:
cout << "Hello, World!\n";
- The appropriate operator<< is invoked:
- Converts each value into a sequence of characters
- Inserts each character into a stream buffer
prev
|top
|next