![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
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...
|
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 489
Rep Power: 4
![]() |
Re: placement new!!??
placement new you write your own new operator
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
Re: placement new!!??
but when n why would I do that... Is the heap allocated any different?
|
|
|
|
|
|
#4 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 489
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| X,Y placement in console | mrynit | C++ | 13 | Mar 13th, 2006 9:35 PM |