[comp.lang.c++] g++ code

880716a@aucs.uucp (Dave Astels) (05/04/90)

I have a question concerning the source code for g++.

In the library files I see things such as: (from Bag.*)

class <T>Bag ...
//...
... add(<T&> something)...


What is the meaning of this notation (the <T>, and such) ????
My guess is that it somehow allows you to implement a generic Bag (in this
case) and using some sort of macro-like substitution make intBag for ints
and such...

Assistance will be much appriciated.


-- 
- Dave

Internet: 880716a@AcadiaU.CA
Bitnet:   880716a@Acadia