Conditional functions

Justin Whear via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 5 09:55:49 PST 2015


On Mon, 05 Jan 2015 17:47:09 +0000, Dominikus Dittes Scherkl wrote:

> Is it possible to use static if in a template structure to have some
> member functions only for specific types?

Yep.  This is actually a frequently used pattern in functions that return 
ranges.


More information about the Digitalmars-d-learn mailing list