MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / Array

Class Array

cp-profiler/src/cpprofiler/utils/array.hh:14–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13template <typename T>
14class Array
15{
16
17 int m_size;
18 T *m_data;
19
20 public:
21 /// Creates an uninitialized array of size `size`
22 Array(int size);
23 Array(std::initializer_list<T> init_list);
24 Array();
25 ~Array();
26
27 Array(const Array &other);
28 Array &operator=(const Array &other);
29
30 Array(Array &&other);
31
32 T &operator[](int pos);
33
34 const T &operator[](int pos) const;
35
36 int size() const;
37};
38
39template <typename T>
40Array<T> &Array<T>::operator=(const Array<T> &other)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected