The default constructor initializes the vector to zero.
| 39 | |
| 40 | // The default constructor initializes the vector to zero. |
| 41 | Vector() |
| 42 | { |
| 43 | memset(elements, 0, D * sizeof(T)); |
| 44 | } |
| 45 | |
| 46 | // Initializes the vector using an initializer list. The number of elements in the initializer list must |
| 47 | // match the value of the template parameter D. |