Questions tagged [template-function]

Functions that serve as a pattern for creating other similar functions. The basic idea behind template functions is to create a function without having to specify the exact type(s) of some or all of the variables.

121 questions
-4
votes
1 answer

Template function which accepts a template class

I want to write a template function which accepts template class as a input parameter. template void Function(T Input) { } Something like above. can the class be Template class?? if yes, how do i write it? i got an error trying to do…
Barry
  • 133
  • 1
  • 1
  • 9
1 2 3
8
9