Returns an iterator over the elements in this list in proper sequence.
Returns an iterator over the elements in this list in proper sequence.The iterator starts the iteration at the beginning of the list.
Note: The memory allocated by this method for the iterator returned needs to be released by calling pblIteratorFree() once the iterator is no longer needed.
The iterators returned by the this method are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the Iterator's own remove or add methods, the iterator will return a PBL_ERROR_CONCURRENT_MODIFICATION error.
Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.
This method has a time complexity of O(1).