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_ARRAY.cpp
Go to the documentation of this file.
1
// checking for operator new[] (size_t)
2
3
25
#include "config.h"
26
27
#include <
stddef.h
>
28
29
#ifndef _RWSTD_NO_NAMESPACE
30
namespace
std
{
31
#endif
32
33
struct
bad_alloc
{};
34
35
#ifndef _RWSTD_NO_NAMESPACE
36
}
37
#else
38
# define std
39
#endif
40
41
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
42
# define throw(e)
43
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
44
45
46
void
*
operator
new
[] (size_t)
throw
(
std::bad_alloc
);
47
48
int
main
()
49
{
50
operator
new
[] (1);
51
52
return
0;
53
}
main
int main()
Definition
OPERATOR_NEW_ARRAY.cpp:48
std
Definition
json.h:5363
stddef.h
bad_alloc
Definition
GLOBAL_BAD_ALLOC.cpp:46
std::bad_alloc
Definition
EXCEPTION_SPECIFICATION_ON_NEW.cpp:34
Generated by
1.9.8