C++ Deque size()C++ Deque size() function determines the number of elements present in the deque container. For example: Syntaxwhere, return_type is an unsigned integral type. ParameterIt does not contain any parameter. Return valueIt returns the number of elements in the deque container. ExampleLet's see a simple example Output: size of deque is :0 size of deque is :3 In this example, when deque 'd' is empty then the size() function returns 0. When three elements are added in the deque container then size() function returns 3. 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