1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/src/operator_delete.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,60 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Name : operator_delete.cpp
1.18 +// Part of : libstdcpp
1.19 +// Adaptation layer to get locale functionality.
1.20 +// Version :
1.21 +// This material, including documentation and any related
1.22 +// computer programs, is protected by copyright controlled by
1.23 +// Nokia Corporation. All rights are reserved. Copying,
1.24 +// including reproducing, storing, adapting or translating, any
1.25 +// or all of this material requires the prior written consent of
1.26 +// Nokia Corporation. This material also contains confidential
1.27 +// information which may not be disclosed to others without the
1.28 +// prior written consent of Nokia Corporation.
1.29 +//
1.30 +
1.31 +
1.32 +#include "new"
1.33 +#include <e32std.h>
1.34 +
1.35 +#ifdef __SYMBIAN_STDCPP_SUPPORT__
1.36 +
1.37 +EXPORT_C void operator delete(void* p) __NO_THROW
1.38 + {
1.39 + User::Free(p);
1.40 + }
1.41 +
1.42 +EXPORT_C void operator delete(void* p, const std::nothrow_t&) __NO_THROW
1.43 + {
1.44 + User::Free(p);
1.45 + }
1.46 +
1.47 +EXPORT_C void operator delete[](void* p) __NO_THROW
1.48 + {
1.49 + User::Free(p);
1.50 + }
1.51 +
1.52 +EXPORT_C void operator delete[](void* p, const std::nothrow_t&) __NO_THROW
1.53 + {
1.54 + User::Free(p);
1.55 + }
1.56 +
1.57 +// Symbian-specific addition.
1.58 +EXPORT_C void operator delete(void* p, std::size_t) __NO_THROW
1.59 + {
1.60 + User::Free(p);
1.61 + }
1.62 +
1.63 +#endif // __SYMBIAN_STDCPP_SUPPORT__