@brief Releases all reserved memory. @warning Does not call destructors of contained elements (use clear() for that).
| 20 | /// @brief Releases all reserved memory. |
| 21 | /// @warning Does not call destructors of contained elements (use clear() for that). |
| 22 | void release() |
| 23 | { |
| 24 | virtualMemory.release(); |
| 25 | capacityElements = 0; |
| 26 | sizeElements = 0; |
| 27 | } |
| 28 | |
| 29 | /// @brief Clears the stable array by calling the destructor of each element. |
| 30 | /// @note Does not release reserved memory (use release() for that). |