deque::size

size_type size() const;

The member function returns the length of the controlled sequence.

See the related sample program.