We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feb723c commit 2a89d60Copy full SHA for 2a89d60
contents/stacks_and_queues/code/c++/queue.cpp
@@ -57,6 +57,7 @@ namespace my {
57
}
58
59
T& front() const { return _front->value; }
60
+ T const& front() const { return _front->value; }
61
// returning reference can very usefull if someone wants to modify _front element
62
63
size_t size() const { return count; }
0 commit comments