#includeIn this example, we create a deque and add elements to the back using the push_back function. We then use the back function to access and print the last element of the deque. We remove the last element using the pop_back function and then use the back function again to access and print the new last element. The package library for C++ deque and its functions is the STL (Standard Template Library).#include int main() { std::deque myDeque; // Add elements to the back of the deque myDeque.push_back(1); myDeque.push_back(2); myDeque.push_back(3); // Access the back element and print it std::cout << "The back element is: " << myDeque.back() << std::endl; // Remove the back element myDeque.pop_back(); // Access the new back element and print it std::cout << "The new back element is: " << myDeque.back() << std::endl; return 0; }