Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OPERATOR_NEW_ARRAY_NOTHROW.cpp
Go to the documentation of this file.
1// checking for operator new[] (size_t, nothrow_t)
2
3
25#include "config.h"
26
27#include <stddef.h>
28
29
30#ifndef _RWSTD_NO_NAMESPACE
31# ifndef _RWSTD_NO_STD_NOTHROW_T
32
33namespace std {
34
35# endif // _RWSTD_NO_STD_NOTHROW_T
36#endif // _RWSTD_NO_NAMESPACE
37
38struct nothrow_t { };
39
40#ifndef _RWSTD_NO_NAMESPACE
41# ifndef _RWSTD_NO_STD_NOTHROW_T
42
43} // end namespace std
44
45using std::nothrow_t;
46
47# endif // _RWSTD_NO_STD_NOTHROW_T
48#endif // _RWSTD_NO_NAMESPACE
49
50#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
51# define throw()
52#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
53
54void* operator new[] (size_t, const nothrow_t&) throw ();
55
56int main ()
57{
58 ::operator new[] (1, nothrow_t ());
59 return 0;
60}
Definition json.h:5363