Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
723 B

  1. /***
  2. *nothrow0.cpp - defines object std::nothrow_t for placement new
  3. *
  4. * Copyright (c) 2001, Microsoft Corporation. All rights reserved.
  5. * Derived from code Copyright (c) 1992-2001 by P.J. Plauger.
  6. *
  7. *Purpose:
  8. * Defines the object std::nothrow which can be used as a placement
  9. * new tag to call the form of operator new which is guaranteed to
  10. * return NULL on an allocation failure instead of raising an
  11. * exception of std::bad_alloc.
  12. *
  13. *Revision History:
  14. * 06-15-01 PML Initial version.
  15. *
  16. *******************************************************************************/
  17. #include <new.h>
  18. namespace std {
  19. const nothrow_t nothrow = nothrow_t();
  20. };