Added const to circular_q empty() and full()
This commit is contained in:
parent
b88c784634
commit
6883267996
@ -71,12 +71,12 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool empty()
|
bool empty() const
|
||||||
{
|
{
|
||||||
return tail_ == head_;
|
return tail_ == head_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool full()
|
bool full() const
|
||||||
{
|
{
|
||||||
// head is ahead of the tail by 1
|
// head is ahead of the tail by 1
|
||||||
return ((tail_ + 1) % max_items_) == head_;
|
return ((tail_ + 1) % max_items_) == head_;
|
||||||
|
Loading…
Reference in New Issue
Block a user