Passing struct and struct[] into a template

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 23 11:00:17 PDT 2015


On Wednesday, 22 July 2015 at 04:29:26 UTC, Taylor Gronka wrote:
> Hi,
>
> I have a template function, and I want it to do something if 
> the input variable is a list of structs, and something else if 
> the input is a struct.
>
> [...]

Take a look at this thread, the poster had the same question:
http://forum.dlang.org/thread/djxzatqdwplocaazmvsc@forum.dlang.org


More information about the Digitalmars-d-learn mailing list