A doubt about templates
-
Hi All, I have a little doubt about templates, and no compiler to test this. Is it possible to have a template member function in a class that is not template, or even a global template function ?? i'm puzzling as i just thought to this... thanks for your answers guyz
Don't know where to start ?
Refer the Forums Guidelines and ask a friend -
Hi All, I have a little doubt about templates, and no compiler to test this. Is it possible to have a template member function in a class that is not template, or even a global template function ?? i'm puzzling as i just thought to this... thanks for your answers guyz
Don't know where to start ?
Refer the Forums Guidelines and ask a friend -
that's a very pragmatic answer, but thanks ! lol
Don't know where to start ?
Refer the Forums Guidelines and ask a friend -
Hi All, I have a little doubt about templates, and no compiler to test this. Is it possible to have a template member function in a class that is not template, or even a global template function ?? i'm puzzling as i just thought to this... thanks for your answers guyz
Don't know where to start ?
Refer the Forums Guidelines and ask a friendtoxcct wrote:
Don't know where to start ? Refer the Forums Guidelines and ask a friend
;) (Couldn't resist...) The answer to your question is 'yes' and Google-ing for "template function" generated these[^] results where the first result screen contains links for code examples of at least template functions that are not class members.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
-
toxcct wrote:
Don't know where to start ? Refer the Forums Guidelines and ask a friend
;) (Couldn't resist...) The answer to your question is 'yes' and Google-ing for "template function" generated these[^] results where the first result screen contains links for code examples of at least template functions that are not class members.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
Roger Stoltz wrote:
(Couldn't resist...)
:doh::laugh: shame on me ! lol actually, i asked here because i know that Valuable programmers are here, and will be able to explain things easily.
Don't know where to start ?
Refer the Forums Guidelines and ask a friend -
Hi All, I have a little doubt about templates, and no compiler to test this. Is it possible to have a template member function in a class that is not template, or even a global template function ?? i'm puzzling as i just thought to this... thanks for your answers guyz
Don't know where to start ?
Refer the Forums Guidelines and ask a friendtoxcct wrote:
even a global template function
If I got you right you can have global template functions.
Nibu thomas A Developer Programming tips[^] My site[^]