I don't know if ICF is designed too much, or if it is too much of a programming skills.
Ivffloatarraymodel type, when some elements of addelement are deleted.
If you delete it like this
// Deleteint narraysize = 0; m_snapshot_output_matrix_model-> getsize (& narraysize); For (INT I = 0; I <narraysize; I ++) {failed (m_snapshot_output_matrix_model-> deleteelement (I);} m_snapshot_output_matrix_model-> getsize (& narraysize); int test = 0;
In this way, the getsize value is 24, and the size is changed to 12 after the cycle is deleted.
For a long time, if the index is deleted from 0, its index is changed. After 0th objects are deleted, 1st objects are changed to 0. When the index is deleted as 1, 2nd objects are actually deleted.
Therefore, delete it.
// Deleteint narraysize = 0; m_snapshot_output_matrix_model-> getsize (& narraysize); For (INT I = narraysize-1; I> = 0; I --) {failed (m_snapshot_output_matrix_model-> deleteelement (I);} m_snapshot_output_matrix_model-> getsize (& narraysize); int test = 0;