Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiniZinc/MiniZincIDE
/ Array
Method
Array
cp-profiler/src/cpprofiler/utils/array.hh:55–58 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
54
template <typename T>
55
Array<T>::Array(int size) : m_size(size)
56
{
57
m_data = static_cast<T *>(malloc(size * sizeof(T)));
58
}
59
60
template <typename T>
61
Array<T>::Array(std::initializer_list<T> init_list)
Callers
nothing calls this directly
Calls
1
size
Method · 0.45
Tested by
no test coverage detected