Using overload operator new within class
<p>Lets say I have a class A and I overload operator new in the class.</p>

<pre><code>class A{
    public:
    A();
    void *operator new(size_t size);
    void operator delete(void *p);
}
</code></pre>

<p>How would I use this overloaded operator new inside of class A instead of the global new?
For example</p>

<pre><code>A::A(){
    ...
    int *temp = new int[10];  //Use overloaded new and not global new
}
</code></pre>

<p>I looked around and I don't think I saw a question that addressed this.</p>

<p>Thanks!</p>
