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