C++ Deque cbegin()C++ Deque cbegin() function returns a constant iterator pointing to the first element of the deque container. This iterator can be incremented or decremented just like the iterator returned by the begin() function. If the container is empty then the returned iterator will be equal to the cend(). SyntaxParameterIt does not contain any parameter. Return valueIt returns a constant iterator pointing to the beginning of the container. Example 1Let's see a simple example Output: mango In this example, cbegin() function returns a constant iterator to the beginning of the container. Example 2Let's see a simple example Output: 400 In this example, cbegin() function is incremented by 3. Therefore, it returns an iterator of the 4th element. 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