title: Is it safe to use _msize with new[]?
body: <p>Is it safe to use Microsoft specific _msize() function with new []?</p>
  
  <p>Example:</p>
  
  <pre><code>  int* i = new int[100];      
    size_t s = _msize(i);    
    cout &lt;&lt; "Size of the array in bytes: " &lt;&lt; s &lt;&lt; endl;
    delete [] i;
  </code></pre>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/z2s077bc.aspx" rel="nofollow">MSDN</a> does describe just the usage with malloc &amp; Co. </p>
  
  <p>I've tested the code with Visual Studio 2010, and it looks to work! But i would like to know if there are some expected issues or any special cases?</p>