Use of "T"

solidstate1991 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 12 07:46:20 PDT 2017


On Wednesday, 12 April 2017 at 13:54:11 UTC, qznc wrote:
> On Wednesday, 12 April 2017 at 13:17:42 UTC, solidstate1991 
> wrote:
>> How can I make use of T? I've seen it being used many times 
>> for this application.
>
> What "T"? This letter is often used as a generic template 
> parameter. Are you talking about templates?
>
> Maybe you can give some examples of the "many times" you have 
> seen it used?

Yes, templates. I've looked this up a bit, and I found it. I want 
to use it to use the dictionaries for different things than 
string<->int conversion. This should be the Dictionary(int), 
string<->string conversion should be done with 
Dictionary(string). Int<->string should be done as 
Dictionary(string,int) if possible.


More information about the Digitalmars-d-learn mailing list