MCPcopy 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
54template <typename T>
55Array<T>::Array(int size) : m_size(size)
56{
57 m_data = static_cast<T *>(malloc(size * sizeof(T)));
58}
59
60template <typename T>
61Array<T>::Array(std::initializer_list<T> init_list)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected