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_DELETE_NOTHROW.cpp
Go to the documentation of this file.
1
// checking for operator delete (void*, nothrow_t)
2
3
25
#include "config.h"
26
#include <
stddef.h
>
27
28
#ifndef _RWSTD_NO_NAMESPACE
29
# ifndef _RWSTD_NO_STD_NOTHROW_T
30
31
namespace
std
{
32
33
# endif
// _RWSTD_NO_STD_NOTHROW_T
34
#endif
// _RWSTD_NO_NAMESPACE
35
36
struct
nothrow_t
{ };
37
38
#ifndef _RWSTD_NO_NAMESPACE
39
# ifndef _RWSTD_NO_STD_NOTHROW_T
40
41
}
// end namespace std
42
43
using
std::nothrow_t
;
44
45
# endif
// _RWSTD_NO_STD_NOTHROW_T
46
#endif
// _RWSTD_NO_NAMESPACE
47
48
49
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
50
# define throw()
51
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
52
53
54
void
operator
delete
(
void
*,
const
nothrow_t
&)
throw
();
55
56
int
main
()
57
{
58
void
*
ptr
= 0;
59
::operator
delete
(
ptr
,
nothrow_t
());
60
return
0;
61
}
ptr
#define ptr
Definition
17.names.cpp:525
main
int main()
Definition
OPERATOR_DELETE_NOTHROW.cpp:56
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