// Finding min element; trying to simplify usage #include #include #include #include namespace my{ double min_element(const std::vector & v){ // no explicit iterator! We need only *(iterator) return *(std::min_element(v.begin(),v.end())); } } // calling routine is clean and simple: int main(){ std::vector v{1.7,1.3,2.8,4.1}; std::cout<<"minimum element = "<