yapf/fixedsizearray.hpp
changeset 5081 fe3a6da19d9f
parent 4988 879ba90441d1
child 5082 d7719dfaa7e1
equal deleted inserted replaced
5080:2f268952e410 5081:fe3a6da19d9f
    22 	};
    22 	};
    23 
    23 
    24 	// make types and constants visible from outside
    24 	// make types and constants visible from outside
    25 	typedef Titem_ Titem; // type of array item
    25 	typedef Titem_ Titem; // type of array item
    26 
    26 
    27 	ST_CONST(int, Tcapacity = Tcapacity_); // the array capacity (maximum size)
    27 	ST_CONST(int, Tcapacity = Tcapacity_) // the array capacity (maximum size)
    28 	ST_CONST(int, TitemSize = sizeof(Titem_)); // size of item
    28 	ST_CONST(int, TitemSize = sizeof(Titem_)) // size of item
    29 	ST_CONST(int, ThdrSize  = sizeof(CHdr)); // size of header
    29 	ST_CONST(int, ThdrSize  = sizeof(CHdr)) // size of header
    30 
    30 
    31 	/** Default constructor. Preallocate space for items and header, then initialize header. */
    31 	/** Default constructor. Preallocate space for items and header, then initialize header. */
    32 	CFixedSizeArrayT()
    32 	CFixedSizeArrayT()
    33 	{
    33 	{
    34 		// allocate block for header + items (don't construct items)
    34 		// allocate block for header + items (don't construct items)