|
|
| version 1.98, 2024/10/26 15:46:52 | version 1.100, 2024/11/04 03:53:25 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: Array & Array_iterator classes decls. | Parser: Array & Array_iterator classes decls. |
| Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| Line 218 protected: | Line 218 protected: |
| inline void fit(size_t index){ | inline void fit(size_t index){ |
| if(index >= fallocated) | if(index >= fallocated) |
| resize(max(this->fallocated + this->fallocated/4, index+1)); | resize(max(fallocated+fallocated/4, index+1)); |
| } | } |
| void resize(size_t asize) { | void resize(size_t asize) { |