| 425 | |
| 426 | template <typename T> |
| 427 | Iterator<T*> MakeVectorPointingIterator(std::vector<T> v) { |
| 428 | return Iterator<T*>(VectorPointingIterator<T>(std::move(v))); |
| 429 | } |
| 430 | |
| 431 | /// \brief MapIterator takes ownership of an iterator and a function to apply |
| 432 | /// on every element. The mapped function is not allowed to fail. |