队列queue函数
There is a function queue::empty() that can be used to check whether queue is empty or not – it returns 1 (true) if queue is empty else returns 0 (false).
有一个函数queue :: empty()可用于检查队列是否为空–如果队列为空,则返回1(真),否则返回0(假)。
But, in this example – we are checking it by using queue::size() function.
但是,在此示例中–我们通过使用queue :: size()函数进行检查。
If we don't want to use queue::empty() function, we can check the size of the queu