yeah it will be created...  so code size will be the same.. only benefit  of
templates is clearer understanding and u dnt hav to write code , as compiler
does it for you

On Tue, Aug 16, 2011 at 11:51 PM, priya ramesh <
[email protected]> wrote:

> Please Explain the working of templates in c++.
> for a template like
> template <Class t>
> T sum (T n1, T n2){
> return n1+n2;
> }
>
> Will a separate function like
> int sum (int , int)
> be created when it is instantiated with an integer??
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to