Using static opCall instead of the default constructor.

Namespace rswhite4 at googlemail.com
Tue Jul 16 16:00:05 PDT 2013


----
static PriorityQueue opCall(T)() {
	PriorityQueue!T po;

	po.A = new T[DEFAULT_QueueSIZE];
	po.num = 1;

	return po;
}
----


More information about the Digitalmars-d-learn mailing list