Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   placement new!!?? (http://www.programmingforums.org/showthread.php?t=15085)

Rajkumar Jan 30th, 2008 6:45 AM

placement new!!??
 
can somebody give a clear picture on placement new operator ...and how is it different from the 'regular' new in terms of application and memory pools? some sample codes please...

Ancient Dragon Jan 30th, 2008 6:57 AM

Re: placement new!!??
 
placement new you write your own new operator

Rajkumar Jan 30th, 2008 7:06 AM

Re: placement new!!??
 
but when n why would I do that... Is the heap allocated any different?

Ancient Dragon Jan 30th, 2008 8:41 AM

Re: placement new!!??
 
more info

>>Is the heap allocated any different?
The heap is normally not used for that because the memory returned by placement new comes from some pre-allocated memory block.

Rajkumar Jan 30th, 2008 9:13 AM

Re: placement new!!??
 
oh is it?? I was under a perception that it is yet another kind of DMA. ok thanks bro, I'll look into it n come bac tomorrow.


All times are GMT -5. The time now is 3:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC