|
|
| version 1.71, 2009/04/17 09:55:21 | version 1.76, 2009/04/29 03:26:38 |
|---|---|
| Line 83 public: | Line 83 public: |
| felements=fallocated?static_cast<T*>(malloc(fallocated*sizeof(T))):0; | felements=fallocated?static_cast<T*>(malloc(fallocated*sizeof(T))):0; |
| } | } |
| #ifdef USE_DESTRUCTORS | |
| inline ~Array(){ | |
| if(felements) | |
| free(felements); | |
| } | |
| #endif | |
| /// how many items are in Array | /// how many items are in Array |
| inline size_t count() const { return fused; } | inline size_t count() const { return fused; } |
| /// append to array | /// append to array |
| Line 188 public: | Line 195 public: |
| return T(0); | return T(0); |
| } | } |
| inline T* ptr(size_t index){ | |
| return felements + index; | |
| } | |
| protected: | protected: |
| bool is_full() { | bool is_full() { |