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
STD_NOTHROW_T.cpp
Go to the documentation of this file.
1
// checking for std::nothrow_t
2
3
25
#include <
stddef.h
>
// for size_t
26
27
#include "config.h"
28
29
30
// will fail if namespaces aren't supported
31
namespace
std
32
{
33
struct
nothrow_t
{ };
34
}
35
36
37
// force a failure if namespace std isn't honored
38
void
nothrow_t
();
39
40
41
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
42
# define throw()
43
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
44
45
46
// try to use ::operator new (size_t, std::nothrow_t)
47
// and guess whether std::nothrow_t is defined or not
48
void
*
operator
new
(size_t,
const
std::nothrow_t
&)
throw
();
49
50
51
int
main
()
52
{
53
::operator
new
(1,
std::nothrow_t
());
54
55
return
0;
56
}
nothrow_t
void nothrow_t()
main
int main()
Definition
STD_NOTHROW_T.cpp:51
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