home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / code / bcpp / file19 / placenew.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-19  |  399 b   |  17 lines

  1. /////////////////////////////////////////////////////////////
  2. // placenew.h: inline placement new operator
  3. // Copyright(c) 1993 Azarona Software. All rights reserved.
  4. /////////////////////////////////////////////////////////////
  5. #ifndef H_PLACENEW
  6. #define H_PLACENEW
  7. #include <stddef.h>
  8.  
  9. inline void *operator new(size_t, void *p)
  10. // Placement new operator.
  11. {
  12.   return p;
  13. }
  14.  
  15. #endif
  16.  
  17.