Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/design-patterns-in-modern-cpp
/ stack_and_vector
Function
stack_and_vector
Structural/Adapter/adapter.cpp:10–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
#include <boost/algorithm/string.hpp>
9
10
void stack_and_vector()
11
{
12
stack<int, vector<int>> s;
13
s.push(123);
14
int x = s.top();
15
s.pop();
16
}
17
18
class String
19
{
Callers
nothing calls this directly
Calls
1
top
Method · 0.80
Tested by
no test coverage detected