Generic Class Definition
Posted on 1999-07-08
Please give me a simple example (or a very good hyperlink of the same) of how to create a generic class in C++. By generic, I mean one that the user can instantiate with different data types. To receive full credit, I would like to see in this example how the user must supply a function that should be overloaded (like the "=" operator) and how items of this unknown data type are used in the generic definition. I have coded this in Ada95, but have yet to learn how to do it with C++.
If my question is hard to understand, please leave a comment for me.
Thanks in advance.