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
24 lines
723 B
/***
|
|
*nothrow0.cpp - defines object std::nothrow_t for placement new
|
|
*
|
|
* Copyright (c) 2001, Microsoft Corporation. All rights reserved.
|
|
* Derived from code Copyright (c) 1992-2001 by P.J. Plauger.
|
|
*
|
|
*Purpose:
|
|
* Defines the object std::nothrow which can be used as a placement
|
|
* new tag to call the form of operator new which is guaranteed to
|
|
* return NULL on an allocation failure instead of raising an
|
|
* exception of std::bad_alloc.
|
|
*
|
|
*Revision History:
|
|
* 06-15-01 PML Initial version.
|
|
*
|
|
*******************************************************************************/
|
|
|
|
#include <new.h>
|
|
|
|
namespace std {
|
|
|
|
const nothrow_t nothrow = nothrow_t();
|
|
|
|
};
|