home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13481 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usc!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!convex!ssimmons
  2. From: ssimmons@convex.com (Steve Simmons)
  3. Newsgroups: comp.lang.c++
  4. Subject: >>>>>> Novice Question on Wierd class definition
  5. Message-ID: <ssimmons.716144452@convex.convex.com>
  6. Date: 10 Sep 92 17:00:52 GMT
  7. Sender: usenet@news.eng.convex.com (news access account)
  8. Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
  9. Lines: 23
  10. Nntp-Posting-Host: pixel.convex.com
  11. X-Disclaimer: This message was written by a user at CONVEX Computer
  12.               Corp. The opinions expressed are those of the user and
  13.               not necessarily those of CONVEX.
  14.  
  15.  
  16. > I have been looking at a piece of code that looks something like  
  17. > this:
  18. >
  19. > class A {
  20. > .. some defs...
  21. > }
  22. >
  23. > class B(type) {
  24. >        type** C;
  25. > .more defs...
  26. > }
  27. > Is B a template class, or what its it? Is it an anachronism?
  28.  
  29. It is a template class... Templates are available with ATT V3.0... 
  30.  
  31. Templates are useful when you have several structures that are similar
  32. in structure; however, a common field of the structure differs among them.  
  33.  
  34. Thank you. 
  35.  
  36.                         Steve Simmons 
  37.