Closed abi87 closed 3 years ago
Scanning a vector and removing specific items one by one can cause relocation and results in a O(N^2) complexity. Erase/Remove idiom guarantees linear complexity instead since all elements marked for removal are erased at once
Absorbed by https://github.com/HorizenOfficial/zend_oo/pull/74
Scanning a vector and removing specific items one by one can cause relocation and results in a O(N^2) complexity. Erase/Remove idiom guarantees linear complexity instead since all elements marked for removal are erased at once