#includevoid exampleCountMethod() { RPointerArray array; array.AppendL(_L("hello")); array.AppendL(_L("world")); TInt count = array.Count(); // count will have a value of 2 }
#includeThis example creates an RPointerArray of CBase objects, which is a base class of all Symbian classes. The array is empty, so the Count method will return zero. In conclusion, the RPointerArray class is part of the Symbian Foundation Library. The Count method is a simple method to determine the number of elements in an RPointerArray, which is useful for checking whether the array contains any elements or not.void exampleCountMethod2() { RPointerArray array; TInt count = array.Count(); // count will have a value of 0 }