When is a template a better solution than a base class in C+?

Author Topic: When is a template a better solution than a base class in C+?  (Read 479 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the generality) to the designer of the container or manager class.


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1470 Views
Last post 11-10-2011, 19:42:34
by SEotusta
4 Replies
1472 Views
Last post 09-03-2011, 20:53:43
by coniefox
0 Replies
721 Views
Last post 07-20-2012, 01:09:31
by tomjohn
0 Replies
563 Views
Last post 09-03-2016, 03:43:26
by beingchinmay
0 Replies
699 Views
Last post 06-03-2017, 11:48:36
by steve907