cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Get total number of elements in queue
Get total number of elements in queue
Aug 10, 2015 at 2:19am UTC
AVM8
(56)
I wish to know how we get the total elements in the queue?
Aug 10, 2015 at 2:22am UTC
LB
(13399)
If you are using
std::queue
then use
.size()
http://www.cplusplus.com/reference/queue/queue/size/
http://en.cppreference.com/w/cpp/container/queue/size
Last edited on
Aug 10, 2015 at 2:22am UTC
Aug 10, 2015 at 2:29am UTC
AVM8
(56)
LB
thank you very much.
Topic archived. No new replies allowed.