×
Namespaces

Variants
Actions

Creating an instance of a T–class into heap with a new operator

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s): S60 platform
Series 80 platform
Article
Created: User:Technical writer 1 (07 Apr 2005)
Last edited: hamishwillee (30 May 2013)

Overview

Creating an instance of a T–class into heap with a new operator

Description

It is possible to create an instance of a T–class with a new operator, but these precautions must be taken:

  • Instances of T–Classes can be safely placed into the CleanupStack, assuming that they do not contain any pointers or references to external objects. CleanupStack handles the cleanup simply by calling User::Free().
  • Member variables are not zeroed automatically on construction. Only CBase's new operator zeroes members.
This page was last modified on 30 May 2013, at 07:32.
43 page views in the last 30 days.
×