#includeIn this example, we create a vector `v` with five elements and print its size and capacity before and after calling `shrink_to_fit()`. The `shrink_to_fit()` method is a part of the `std` package library.#include int main() { std::vector v {1, 2, 3, 4, 5}; std::cout << "Vector size before shrink_to_fit(): " << v.size() << std::endl; std::cout << "Vector capacity before shrink_to_fit(): " << v.capacity() << std::endl; v.shrink_to_fit(); std::cout << "Vector size after shrink_to_fit(): " << v.size() << std::endl; std::cout << "Vector capacity after shrink_to_fit(): " << v.capacity() << std::endl; return 0; }