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

View File

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