Can I always substitite pointers for InputIterators in the fashion examplified in the below code?
int a[] = {5, 6, 7, 8, 9, 10};
std::list<int> l(a, a + 4); // 5, 6, 7, 8
The constructor declaration for list is (leaving out the allocator part)
list (InputIterator first, InputIterator last);
But from the C++ reference it almost seems like anything which supports actions such as ++ (increment) and * (dereferenceing) could be used as InputIterators?
Thank you.