cppreference.com > C++ Double-ended Queues > size
size
Syntax:
  #include <deque>
  size_type size() const;

The size() function returns the number of elements in the current dequeue.