check if queue is empty c 2b 2b

Solutions on MaxInterview for check if queue is empty c 2b 2b by the best coders in the world

showing results for - "check if queue is empty c 2b 2b"
Calie
01 Oct 2020
1  while (!myqueue.empty())
2  {
3     sum += myqueue.front();
4     myqueue.pop();
5  }