C++ emplace_back()C++ Deque emplace_back() function adds a new element at the end of the deque and the size of the container is increased by one. SyntaxParameterval: New value to be inserted at the end of the deque. Return valueIt does not return any value. Example 1Let's see a simple example Output: 1 2 3 4 5 In this example, emplace_back() function adds a new element i.e 5 at the end of the deque. Example 2Let's see a simple example Output: java In this example, emplace_back() function adds a new element i.e 'a' at the end of the deque. Next TopicC++ Deque |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India