Using new on void pointer
<pre><code>int main()
{
    void* Foo = new???
    delete Foo;
}
</code></pre>

<p>How do you do something like the above? You can't put new void[size]. And I don't want to know how to do it with malloc and free. I already know that works. I'm curious and want to know how it's done with new and delete.</p>

<p>I googled this and saw something about operator new(size); and operator delete(size);</p>

<p>What is the difference between those and new/delete? Why does C++ not just allow new void*[size]?</p>
