108 class Vector : public Container<T, std::vector<T>> |
108 class Vector : public Container<T, std::vector<T>> |
109 { |
109 { |
110 public: |
110 public: |
111 using Super = Container<T, std::vector<T>>; |
111 using Super = Container<T, std::vector<T>>; |
112 |
112 |
113 template<typename... Args> |
113 Vector() {} |
114 Vector (Args ...args) : |
114 Vector (int numvalues) : Super (numvalues) {} |
115 Super (args...) {} |
115 Vector (const Vector<T>& a) : Super (a) {} |
|
116 Vector (std::initializer_list<T>&& a) : Super (a) {} |
|
117 Vector (T* data, size_t length) : Super (std::vector<T> (data, data + length)) {} |
116 |
118 |
117 auto data() -> T* |
119 auto data() -> T* |
118 { |
120 { |
119 return Super::m_container.data(); |
121 return Super::m_container.data(); |
120 } |
122 } |