Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ Vector
Method
Vector
CPP/vector-concepts/vector.h:6–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
int cs;
5
public:
6
Vector(int size=1){
7
cs=0;
8
ms=size;
9
arr= new int[ms];
10
}
11
void push_back(int d){
12
if(cs==ms){
13
int *oldArr=arr;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected