Placement syntax: Difference between revisions

Content deleted Content added
RHaden (talk | contribs)
m Fixed capitalization error.
Line 77:
</source>
 
placementPlacement new is used when you do not want operator new to allocate memory (you have pre-allocated it and you want to place the object there), but you do want the object to be constructed. Examples of typical situations where this may be required are:
* You want to create objects in memory shared between two different processes.
* You want objects to be created in non-pageable memory.