Using static opCall instead of the default constructor.

Jaehunt jaeyoep at gmail.com
Tue Jul 16 20:00:11 PDT 2013


On Tuesday, 16 July 2013 at 23:00:06 UTC, Namespace wrote:
> ----
> static PriorityQueue opCall(T)() {
> 	PriorityQueue!T po;
>
> 	po.A = new T[DEFAULT_QueueSIZE];
> 	po.num = 1;
>
> 	return po;
> }
> ----

Thanks a lot.


More information about the Digitalmars-d-learn mailing list