252:3f9067022d74 | 253:0737c217a54d |
---|---|
209 | 209 |
210 void resize (std::ptrdiff_t size) { | 210 void resize (std::ptrdiff_t size) { |
211 m_vect.resize (size); | 211 m_vect.resize (size); |
212 } | 212 } |
213 | 213 |
214 template<int N> vector<T>& operator= (T vals[N]) { | |
215 for (int i = 0; i < N; ++i) | |
216 push_back (vals[i]); | |
217 | |
218 return *this; | |
219 } | |
220 | |
214 private: | 221 private: |
215 std::vector<T> m_vect; | 222 std::vector<T> m_vect; |
216 }; | 223 }; |
217 | 224 |
218 #endif // TYPES_H | 225 #endif // TYPES_H |