Protecting parallel algorithms from iterators with an overloaded operator,()