diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-5875C752-12A9-5819-90D9-CAAE48F1A5C5.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-5875C752-12A9-5819-90D9-CAAE48F1A5C5.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,38 @@ + + + + + +Using +CArrayFixSeg<TAny>The CArrayFixSeg<TAny> is useful for constructing +an array of fixed length buffers, where the length is decided at run time. +
Arrays whose type is not known until class instantiation

The CArrayFixSeg<TAny> is +useful for constructing an array of fixed 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 fixed length objects of type T.

class CExampleBase : public CBase + { +public : + ... +protected : + ... + void PushL(const TAny* aPtr); + TAny* Pop(); +private : + CArrayFixSeg<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