| 148 | |
| 149 | template <typename Element, size_t MaxSize> |
| 150 | auto StaticVector<Element, MaxSize>::operator=(StaticVector const& other) -> StaticVector& { |
| 151 | if (this == &other) |
| 152 | return *this; |
| 153 | |
| 154 | resize(other.size()); |
| 155 | for (size_t i = 0; i < m_size; ++i) |
| 156 | operator[](i) = other[i]; |
| 157 | |
| 158 | return *this; |
| 159 | } |
| 160 | |
| 161 | template <typename Element, size_t MaxSize> |
| 162 | auto StaticVector<Element, MaxSize>::operator=(StaticVector&& other) -> StaticVector& { |