|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Name : operator_delete.cpp |
|
15 // Part of : libstdcpp |
|
16 // Adaptation layer to get locale functionality. |
|
17 // Version : |
|
18 // This material, including documentation and any related |
|
19 // computer programs, is protected by copyright controlled by |
|
20 // Nokia Corporation. All rights are reserved. Copying, |
|
21 // including reproducing, storing, adapting or translating, any |
|
22 // or all of this material requires the prior written consent of |
|
23 // Nokia Corporation. This material also contains confidential |
|
24 // information which may not be disclosed to others without the |
|
25 // prior written consent of Nokia Corporation. |
|
26 // |
|
27 |
|
28 |
|
29 #include "new" |
|
30 #include <e32std.h> |
|
31 |
|
32 #ifdef __SYMBIAN_STDCPP_SUPPORT__ |
|
33 |
|
34 EXPORT_C void operator delete(void* p) __NO_THROW |
|
35 { |
|
36 User::Free(p); |
|
37 } |
|
38 |
|
39 EXPORT_C void operator delete(void* p, const std::nothrow_t&) __NO_THROW |
|
40 { |
|
41 User::Free(p); |
|
42 } |
|
43 |
|
44 EXPORT_C void operator delete[](void* p) __NO_THROW |
|
45 { |
|
46 User::Free(p); |
|
47 } |
|
48 |
|
49 EXPORT_C void operator delete[](void* p, const std::nothrow_t&) __NO_THROW |
|
50 { |
|
51 User::Free(p); |
|
52 } |
|
53 |
|
54 // Symbian-specific addition. |
|
55 EXPORT_C void operator delete(void* p, std::size_t) __NO_THROW |
|
56 { |
|
57 User::Free(p); |
|
58 } |
|
59 |
|
60 #endif // __SYMBIAN_STDCPP_SUPPORT__ |