Does new operator call malloc() to apply memory ?

Florian Weimer fweimer@redhat.com
Mon Aug 19 09:46:00 GMT 2013


On 08/17/2013 02:02 PM, Hatt Tom wrote:
>     Does new operator call malloc() to apply memory ?

Yes, on typical systems.  But there might be variants of libstdc++ which 
don't do this.

>     Is it successive for the memory rang returnedd allocated by new  ?

No, not in general.

-- 
Florian Weimer / Red Hat Product Security Team



More information about the Libstdc++ mailing list