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
GLOBAL_NOTHROW_T.cpp
Go to the documentation of this file.
1
// checking for ::nothrow_t
2
3
25
#include <
stddef.h
>
// for size_t
26
27
#include "config.h"
28
29
30
// declare a global nothrow_t
31
struct
nothrow_t
{ };
32
33
34
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
35
# define throw()
36
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
37
38
void
*
operator
new
(
size_t
n
,
const
nothrow_t
&)
throw
();
39
40
int
main
()
41
{
42
// won't link if ::operator new (size_t, const ::nothrow_t&)
43
// is not defined in the compiler support library
44
::operator
new
(1,
nothrow_t
());
45
46
return
0;
47
}
n
#define n
Definition
17.names.cpp:130
main
int main()
Definition
GLOBAL_NOTHROW_T.cpp:40
stddef.h
nothrow_t
Definition
GLOBAL_NOTHROW.cpp:25
Generated by
1.9.8