Pseudo-constructors for dynamic allocation of
Solids
. They create aSolid
on the free store and allocate memory for it usingnew(Solid)
. They return a pointer to the newSolid
.If s is a non-zero pointer or a reference, the new
Solid
will be a copy of s. If the new object is not meant to be a copy of an existing one, ‘0’ must be passed tocreate_new<Solid>()
as its argument. See Dynamic Allocation of Shapes, for more information.