|
|
| version 1.73, 2009/04/17 23:21:12 | 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(){ | inline ~Array(){ |
| free(felements); | 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() { |