How to convert this function into a template ?

Vinod K Chandran kcvinu82 at gmail.com
Wed Oct 3 05:38:17 UTC 2018


On Tuesday, 2 October 2018 at 17:37:58 UTC, Ali Çehreli wrote:
> On 10/02/2018 07:39 AM, Vinod K Chandran wrote:
>
> > Thanks a lot. Great help !. I will sure the check the link. :)
>
> I find the Index section useful (yes, can be improved). For 
> example, just seach for "append" on this page:
>
>   http://ddili.org/ders/d.en/ix.html
>
> > The doumentation did not tell me about the (T) in template. I
> can
> > understand the "(T)" s inside the parentheses but i can't
> understand the
> > one after template name.
>
> The Templates chapter says:
>
>   Although T is an arbitrary name, it is an acronym for "type" 
> and
>   is very common in templates.
>
>
> http://ddili.org/ders/d.en/templates.html#ix_templates.function%20template
>
> Ali

Thanks for the reply. Yes, the tutorial in that link contains 
append array. I think its  good for me to learn with this 
tutorial, everything is structured and easy to find.


More information about the Digitalmars-d-learn mailing list