How to convert this function into a template ?

Ali Çehreli acehreli at yahoo.com
Tue Oct 2 17:37:58 UTC 2018


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



More information about the Digitalmars-d-learn mailing list