| 255 | } |
| 256 | |
| 257 | SIMD_FORCE_INLINE void push_back(const T& _Val) |
| 258 | { |
| 259 | const int sz = size(); |
| 260 | if (sz == capacity()) |
| 261 | { |
| 262 | reserve(allocSize(size())); |
| 263 | } |
| 264 | |
| 265 | #ifdef BT_USE_PLACEMENT_NEW |
| 266 | new (&m_data[m_size]) T(_Val); |
| 267 | #else |
| 268 | m_data[size()] = _Val; |
| 269 | #endif //BT_USE_PLACEMENT_NEW |
| 270 | |
| 271 | m_size++; |
| 272 | } |
| 273 | |
| 274 | /// return the pre-allocated (reserved) elements, this is at least as large as the total number of elements,see size() and reserve() |
| 275 | SIMD_FORCE_INLINE int capacity() const |
no test coverage detected