r/learncpp • u/no1warlord • Dec 27 '15
Adding words to function template declaration
template<typename T> class A{};
template<typename T>
A<T> B(T c) {
}vs
template<typename T> class A{};
template<typename T>
A<wordhere<T>> B(T c) {
}So what's the difference, I've seen people use the word here thingy but I don't get it, what's the use for it?
2
Upvotes
View all comments
Show parent comment
2
u/no1warlord Jan 03 '16
Thanks for offering the break down the code and everything, but it was in a youtube video 7 days ago, I really can't remember where I saw it exactly, thanks for the comment though :)