Fixed problems that emerged in list.
[xlqstl.git] / new
blob2494ea569d484f696481d0b0420d2debd69932d1
1 // vi:ft=cpp
2 #ifndef _STL_NEW_H
3 #define _STL_NEW_H
5 #include "exception"
6 #include "cstddef"
8 namespace std {
10 struct bad_alloc: public exception {
11     const char *what();
14 struct nothrow_t { };
15 extern const nothrow_t nothrow;
19 // normal
20 void *operator new (std::size_t);
21 void *operator new[] (std::size_t);
22 void operator delete (void *) throw();
23 void operator delete[] (void *) throw();
25 // placement
26 void *operator new (std::size_t, void *) throw();
27 void *operator new[] (std::size_t, void *) throw();
28 void operator delete (void *, void *) throw();
29 void operator delete[] (void *, void *) throw();
31 // nothrow
32 void *operator new (std::size_t, std::nothrow_t) throw();
33 void *operator new[] (std::size_t, std::nothrow_t) throw();
35 #endif