equal
deleted
inserted
replaced
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) |