C++ Deque emplace_front()C++ Deque emplace_front() function adds a new element to the beginning of the deque container and the size of the container is increased by one. SyntaxParameterval: New value is to be inserted at the beginning of the deque. Return valueIt does not return any value. Example 1Let's see a simple example Output: strawberry apple mango banana In this example, emplace_front() function add two strings i.e apple and strawberry at the beginning of the deque.
Next TopicC++ Deque
|