| 12 | |
| 13 | template <typename T> |
| 14 | class 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 | |
| 39 | template <typename T> |
| 40 | Array<T> &Array<T>::operator=(const Array<T> &other) |
nothing calls this directly
no outgoing calls
no test coverage detected