50 typedef uint16_t uint16; |
50 typedef uint16_t uint16; |
51 typedef uint32_t uint32; |
51 typedef uint32_t uint32; |
52 typedef uint64_t uint64; |
52 typedef uint64_t uint64; |
53 |
53 |
54 template<class T> using initlist = std::initializer_list<T>; |
54 template<class T> using initlist = std::initializer_list<T>; |
|
55 template<class T, class R> using pair = std::pair<T, R>; |
55 using std::size_t; |
56 using std::size_t; |
56 |
57 |
57 enum Axis { X, Y, Z }; |
58 enum Axis { X, Y, Z }; |
58 static const Axis g_Axes[3] = { X, Y, Z }; |
59 static const Axis g_Axes[3] = { X, Y, Z }; |
59 |
60 |
185 void erase (ulong pos) { |
186 void erase (ulong pos) { |
186 assert (pos < size ()); |
187 assert (pos < size ()); |
187 m_vect.erase (m_vect.begin () + pos); |
188 m_vect.erase (m_vect.begin () + pos); |
188 } |
189 } |
189 |
190 |
190 void push_back (const T& value) { |
191 T& push_back (const T& value) { |
191 m_vect.push_back (value); |
192 m_vect.push_back (value); |
|
193 return m_vect[m_vect.size () - 1]; |
192 } |
194 } |
193 |
195 |
194 void push_back (const vector<T>& vals) { |
196 void push_back (const vector<T>& vals) { |
195 for (const T& val : vals) |
197 for (const T& val : vals) |
196 push_back (val); |
198 push_back (val); |