mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Added const vecsion to circula_q::front()
This commit is contained in:
parent
4985875a15
commit
29b3f471cf
@ -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_];
|
||||||
|
Loading…
Reference in New Issue
Block a user