/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2019-2023 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** iter.cxx : tinkering with iterators **** ****************************************************************/ #include using std::cout; #include using std::vector; #include using std::shared_ptr; #include int main() { vector v{1.5f, 2.5f}; for ( vector::iterator e=v.begin(); e!=v.++end(); e ) cout << *e << '\n'; return 0; }