diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-0446FD98-E0A0-5E6A-B056-AF54172B7453.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-0446FD98-E0A0-5E6A-B056-AF54172B7453.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,38 @@ + + + + + +Using +CArrayPak<TAny>The class is useful for constructing an array of variable length +buffers, where the length is decided at run time. +
Arrays whose type is not known until class instantiation

The +class is useful for constructing an array of variable length buffers, where +the length is decided at run time. It is also useful as a data member of a +base class in a thin template class/base class pair, where the type of the +array element is not known until the owning thin template class is instantiated.

For +example, to implement a stack of packed (variable length) objects of type T.

class CExampleBase : public CBase + { +public : + ... +protected : + ... + void PushL(const TAny* aPtr); + TAny* Pop(); +private : + CArrayPak<TAny> iArray; + } template <class T> +class CExample : public CExampleBase + { +public : + ... + inline void PushL(const T* aPtr); + inline T* Pop(); + }
+
\ No newline at end of file