Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
OPERATOR_NEW_NOTHROW.cpp
Go to the documentation of this file.
1
// checking for operator new (size_t, nothrow_t)
2
3
25
44
#include "config.h"
45
46
#include <
stddef.h
>
// for size_t
47
48
#ifndef _RWSTD_NO_NAMESPACE
49
# ifndef _RWSTD_NO_STD_NOTHROW_T
50
51
namespace
std
{
52
53
# endif
// _RWSTD_NO_STD_NOTHROW_T
54
#endif
// _RWSTD_NO_NAMESPACE
55
56
struct
nothrow_t
{ };
57
58
#ifndef _RWSTD_NO_NAMESPACE
59
# ifndef _RWSTD_NO_STD_NOTHROW_T
60
61
}
// end namespace std
62
63
using
std::nothrow_t
;
64
65
# endif
// _RWSTD_NO_STD_NOTHROW_T
66
#endif
// _RWSTD_NO_NAMESPACE
67
68
69
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
70
# define throw()
71
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
72
73
74
void
*
operator
new
(size_t,
const
nothrow_t
&)
throw
();
75
76
int
main
()
77
{
78
::operator
new
(1,
nothrow_t
());
79
80
return
0;
81
}
main
int main()
Definition
OPERATOR_NEW_NOTHROW.cpp:76
std
Definition
json.h:5363
stddef.h
nothrow_t
Definition
GLOBAL_NOTHROW.cpp:25
std::nothrow_t
Definition
OPERATOR_DELETE_ARRAY_NOTHROW.cpp:36
Generated by
1.9.8