Debian Codegraph @

yo/containers/queue/front.cc

raw
1 #include <iostream>
2 #include <string>
3 #include <queue>
4 using namespace std;
5
6 int main()
7 {
8 queue<string>
9 q;
10
11 q.push("Hello");
12 q.front() = "Hello World";
13
14 cout << q.front() << '\n';
15
16 return (0);
17 }