epoc32/include/symcpp.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100 (2010-03-31)
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of the License "ARM EABI LICENCE.txt"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// in kernel/eka/compsupp.
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@4
    14
// This is a preinclude file for the Symbian C++ specific defintions for RVCT.
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
// Deal with operator new issues here
williamr@2
    19
#ifdef __cplusplus
williamr@2
    20
namespace std {
williamr@2
    21
	struct nothrow_t { };
williamr@2
    22
	extern const nothrow_t nothrow;
williamr@2
    23
}
williamr@2
    24
williamr@4
    25
#ifndef __OPERATOR_NEW_DECLARED__
williamr@4
    26
#define __OPERATOR_NEW_DECLARED__
williamr@4
    27
williamr@4
    28
/* e32cmn.h also declares these five overloads, but slightly differently, so use
williamr@4
    29
 * __OPERATOR_NEW_DECLARED__ to avoid the declarations here (included by compiler-specific
williamr@4
    30
 * pre-include files) from conflicting.
williamr@4
    31
 */
williamr@4
    32
williamr@2
    33
IMPORT_C void* operator new(unsigned int aSize) __NO_THROW;
williamr@2
    34
williamr@2
    35
IMPORT_C void* operator new(unsigned int aSize,unsigned int aSize1) __NO_THROW;
williamr@2
    36
williamr@2
    37
IMPORT_C void* operator new[](unsigned int aSize) __NO_THROW;
williamr@2
    38
williamr@4
    39
IMPORT_C void operator delete(void* aPtr) __NO_THROW;
williamr@4
    40
williamr@4
    41
IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
williamr@4
    42
williamr@4
    43
#endif // !__OPERATOR_NEW_DECLARED__
williamr@4
    44
williamr@4
    45
williamr@4
    46
/* The following four overloads are not declared by the generic Symbian headers, so
williamr@4
    47
 * do not need to be protected by __OPERATOR_NEW_DECLARED__.
williamr@4
    48
 */
williamr@4
    49
williamr@2
    50
IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
williamr@2
    51
williamr@2
    52
IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
williamr@2
    53
williamr@2
    54
IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
williamr@2
    55
williamr@2
    56
IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
williamr@2
    57
williamr@2
    58
#endif