C++ Deque end()C++ Deque end() function returns an iterator pointing to the "past-the-last" element of deque. If the deque container is empty then the end() function returns the same as the begin() function. where, past-the-last: The "past-the-last" is the element that follows the last element and it does not point any element. SyntaxParameterIt does not contain any parameter. Return valueIt returns an iterator referring to the past-the-last element. Example 1Let's see a simple example Output: 10 20 30 40 50 In this example, end() function is used in the while loop to iterate throughout the deque container. 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