|
|
| version 1.72, 2009/04/17 13:13:09 | 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; |
| } | } |
| ~Array(){ | #ifdef USE_DESTRUCTORS |
| free(felements); | 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; } |
| Line 192 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() { |