#includeIn this example, a vector of integers is created with the values 1 to 5. The front() function is then used to obtain the first element of the vector which is printed to the console. The code example is taken from the C++ Standard Library package.#include int main() { std::vector vec = {1, 2, 3, 4, 5}; std::cout << "First element of the vector: " << vec.front() << std::endl; return 0; }