title: realloc function that would work for memory allocated using new instead of realloc
body: <p>I'm aware that there is a <a href="http://www.cplusplus.com/reference/clibrary/cstdlib/realloc/" rel="nofollow noreferrer">realloc</a> function that would allow me to resize the memory block (and it's paired with a free function). However, I'm trying to do the same to a c++ class with some member pointers allocated memory using <strong>new</strong> instead of <strong>realloc</strong>. Is there an equivalent keyword to <strong>realloc</strong> in c++ that would allow me to achieve the same goal when the memory is paired using new/delete rather than malloc or realloc and free?</p>
  
  <p>Thanks in advance.</p>