Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gecode/gecode
/ resize
Method
resize
gecode/support/dynamic-array.hpp:117–122 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
115
116
template<class T, class A>
117
void
118
DynamicArray<T,A>::resize(int i) {
119
int m = std::max(i+1, (3*n)/2);
120
x = a.realloc(x,n,m);
121
n = m;
122
}
123
124
template<class T, class A>
125
forceinline T&
Callers
nothing calls this directly
Calls
2
max
Function · 0.50
realloc
Method · 0.45
Tested by
no test coverage detected