| 280 | }; |
| 281 | |
| 282 | void FreePtr(ValueType* ptr) { |
| 283 | if ((int)_ptr_list.size() >= _max_free) { |
| 284 | delete ptr; |
| 285 | _total--; |
| 286 | } else { |
| 287 | _ptr_list.push(ptr); |
| 288 | } |
| 289 | }; |
| 290 | |
| 291 | protected: |
| 292 | PtrQueue _ptr_list; |
no outgoing calls
no test coverage detected