944,001 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 8509
  • C++ RSS
Nov 19th, 2007
0

Difference between a Template Class and a Class Template

Expand Post »
Hi,

I looked for this information, but couldn't find it anywhere. Is there a difference between a "template class" and a "class template" or are they just two different ways of saying the same thing ?

Thanks a lot.
Similar Threads
Reputation Points: 161
Solved Threads: 43
Posting Whiz
stilllearning is offline Offline
309 posts
since Oct 2007
Nov 19th, 2007
0

Re: Difference between a Template Class and a Class Template

Featured Poster
Reputation Points: 1140
Solved Threads: 229
Postaholic
Duoas is offline Offline
2,039 posts
since Oct 2007
Nov 19th, 2007
0

Re: Difference between a Template Class and a Class Template

Thanks, but I sort of know what templates are and how to implement them.

I found this information on the ibm website.

http://publib.boulder.ibm.com/infoce..._templates.htm

which answers my question.
Reputation Points: 161
Solved Threads: 43
Posting Whiz
stilllearning is offline Offline
309 posts
since Oct 2007
Apr 8th, 2010
0
Re: Difference between a Template Class and a Class Template
Class Template is the code for generating template classs.

i.e.

template<typename T> foo { } // class template

foo<int> t; // template class
lyy
Reputation Points: 6
Solved Threads: 0
Newbie Poster
lyy is offline Offline
1 posts
since Apr 2010
Jul 1st, 2010
-1

Difference between a Template Class and a Class Template Reply to Thread

Template class:
A generic definition or a parameterized class not instantiated until the client provides the needed information. It’s jargon for plain templates.

Class template:
A class template specifies how individual classes can be constructed much like the way a class specifies how individual objects can be constructed. It’s jargon for plain classes.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Satish Puppala is offline Offline
1 posts
since Jul 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: getlin() not working.
Next Thread in C++ Forum Timeline: Zlib based buffer compression





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC