min in vector c++

C++
 *min_element(a.begin(), a.end()); 
Source

Also in C++: