This preview shows page 1. Sign up to view the full content.
Unformatted text preview: useful in embedded systems and other low-level applications: const unsigned long MEMORY_MAP_IO_AREA = 0xf008; ... Some_Class* p = new ((void*) MEMORY_MAP_IO_AREA) Some_Class(); Based on a fairly recent decision of the standards committee, this definition of placement new/delete for void* is reserved by the library, and cannot be replaced by the user (unlike the normal global operator new, which can be). The library also defines a similar placement new/delete for allocating arrays at a specific address....
View Full Document
This note was uploaded on 02/27/2012 for the course CS 251 taught by Professor Staff during the Fall '08 term at Purdue.
- Fall '08