Return the number of elements contained in this container.
Synopsis
Declared in <bdlcc_deque.h>
Deque<TYPE>::size_type
length() const;
Description
Note that this method temporarily acquires the mutex, so that this method must not be called while a proctor in the same thread has this container locked, and the value returned is potentially obsolete before it is returned if any other threads are simultaneously modifying this container. To find the length while a proctor has the container locked, call proctor‐>size().
Return Value
the number of elements in this container
Created with MrDocs