How to convert this function into a template ?

Vinod K Chandran kcvinu82 at gmail.com
Tue Oct 2 12:09:53 UTC 2018


On Tuesday, 2 October 2018 at 11:49:06 UTC, Jonathan M Davis 
wrote:
> Why do you have a function for that? All you need to do is use 
> the append operator. e.g.
>
> x ~= value;
>
> - Jonathan M Davis

Thanks for the reply. I did not find that it in documentation.  
Ofcourse i lost a chance to learn about templates. By translating 
a well known function into a template, i can easiy learn the 
concept, since the template documentation is little bit hard to 
understand.




More information about the Digitalmars-d-learn mailing list