Added const vecsion to circula_q::front()

This commit is contained in:
gabime 2019-09-17 12:28:02 +03:00
parent 4985875a15
commit 29b3f471cf
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ public:
// Return reference to the front item.
// If there are no elements in the container, the behavior is undefined.
const T& front() const
{
return v_[head_];
}
T& front()
{
return v_[head_];