NO FRAMES

operator new

public void * operator new(size_t sz, const IloEnv & env)
Definition file: ilconcert/iloenv.h
Overloaded C++ new operator.

ILOG Concert Technology offers this overloaded C++ new operator. This operator is overloaded to allocate data on internal data structures associated with an invoking environment (an instance of IloEnv). The memory used by objects allocated with this overloaded operator is automatically reclaimed when you call the member function IloEnv::end. As a developer, you must not delete objects allocated with this operator because of this automatic freeing of memory.

In other words, you must not use the delete operator for objects allocated with this overloaded new operator.

The use of this overloaded new operator is not obligatory in Concert Technology applications. You will see examples of its use in the user's manuals that accompany the ILOG optimization products.