Try to find a given item of the array and return an iterator pointing to that element if it exists in the array. Otherwise, this method returns the end() iterator
| 325 | /// pointing to that element if it exists in the array. Otherwise, |
| 326 | /// this method returns the end() iterator |
| 327 | Iterator find(const T& element) { |
| 328 | |
| 329 | for (uint64 i=0; i<mSize; i++) { |
| 330 | if (element == mBuffer[i]) { |
| 331 | return Iterator(mBuffer, i, mSize); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | return end(); |
| 336 | } |
| 337 | |
| 338 | /// Look for an element in the array and remove it |
| 339 | Iterator remove(const T& element) { |