How to get the element type of an array?

Jon Degenhardt jond at noreply.com
Tue Aug 25 03:41:06 UTC 2020


What's the best way to get the element type of an array at 
compile time?

Something like std.range.ElementType except that works on any 
array type. There is std.traits.ForeachType, but it wasn't clear 
if that was the right thing.

--Jon


More information about the Digitalmars-d-learn mailing list