/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2018-2023 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** vectorend.cxx : example of vector end iterator **** ****************************************************************/ #include using std::cin; using std::cout; #include using std::vector; void printsorted( vector array ) { //codesnippet vectorsorted bool sorted{true}; auto array_end = --array.end(); for ( auto e=array.begin(); e{1,3,5,7,9} ); printsorted( vector{1,3,5,9,7} ); return 0; }