Returns the capacity of the vector.
| 432 | |
| 433 | /// Returns the capacity of the vector. |
| 434 | size_type capacity() const |
| 435 | { |
| 436 | if(m_data == pointer()) // null pointer check |
| 437 | { |
| 438 | return 0; |
| 439 | } |
| 440 | return m_data.get_buffer().size() / sizeof(T); |
| 441 | } |
| 442 | |
| 443 | void reserve(size_type size, command_queue &queue) |
| 444 | { |