I know what this means:
int a; --declare a storage to store an integer
But what does this means:
Sptr<CallId> myId ?
I know what this means:
int a; --declare a storage to store an integer
But what does this means:
Sptr<CallId> myId ?
I re-read my first post, felt it didn't really answer your question.. hence trying to make it much more simpler.....
There are generic classes in C++ called template classes. You give the type of data this generic class will work with inbetween "<" and ">" and then specify the object name of the class.
For example:
There is a generic class called stack available in C++
[ STL (Standard Template Library) ]
If you wanted a stack that stores information of type int in it, you would say
stack<int> ob;
Here ob is a stack object that would store information of type int within it.
If you wanted a stack that stores information of type double, you would say
stack<double> ob1;
Here ob1 is a stack object that would store information of type double within it.
I hope this gives a brief insight into what a Template Class is and why it is also referred as a Generic Class
Note: You have Generic / Template functions too
Last edited by shiv_tech_quest; 01-09-2003 at 03:29 AM.
Have a wonderful day.... and keep smiling... you look terrific that way
signing off...
shiv... as i know him