Nobody understands templates?

Dicebot public at dicebot.lv
Mon Mar 3 11:32:49 PST 2014


On Monday, 3 March 2014 at 18:46:24 UTC, Chris wrote:
> E.g. an algorithm that finds the first instance of something 
> might be different for each type (string, char, int) and the 
> "abstract" implementation has to differentiate internally (if 
> string > else if int > else if ...). But this is no longer a 
> template, or is it?

What makes you think so? Template with specializations is still a 
template.


More information about the Digitalmars-d-learn mailing list