Usermode/libc++ - Implement map::insert and map::erase
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / new
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * new (header)
6  * - C++'s new operators
7  */
8 #ifndef _LIBCXX_NEW_
9 #define _LIBCXX_NEW_
10
11
12 #include "cstddef"
13
14 //extern void* operator new(size_t size) throw (::std::bad_alloc);
15 //extern void* operator new(size_t size, const std::nothrow_t& nothrow_value) throw();
16 inline void* operator new(size_t /*size*/, void* ptr) throw() {
17         return ptr;
18 }
19
20 //extern void* operator new[](size_t size) throw (::std::bad_alloc);
21 //extern void* operator new[](size_t size, const std::nothrow_t& nothrow_value) throw();
22 inline void* operator new[](size_t /*size*/, void* ptr) throw() {
23         return ptr;
24 }
25
26 #include "exception"
27
28 namespace std {
29
30 class bad_alloc:
31         public ::std::exception
32 {
33 public:
34         bad_alloc() noexcept;
35         ~bad_alloc() noexcept;
36         
37         const char *what() const noexcept;
38 };
39
40 }       // namespace std
41
42 #endif
43
44 // vim: ft=cpp
45

UCC git Repository :: git.ucc.asn.au