Compile-Time Function Parameters That Aren't Types?

Ali Çehreli acehreli at yahoo.com
Wed Feb 24 20:15:08 UTC 2021


On 2/23/21 7:52 PM, Kyle Ingraham wrote:

> Where would one find information on this

There are Point and Polygon struct templates on the following page where 
one can pick e.g. the dimension (e.g. three dimensional space) by a 
size_t template parameter.

 
http://ddili.org/ders/d.en/templates_more.html#ix_templates_more.value%20template%20parameter

Ali


More information about the Digitalmars-d-learn mailing list