! \brief Appends an element after the last valid element. * Calling this on a vector that has reached capacity will throw an * exception if exceptions are enabled. */
| 729 | * exception if exceptions are enabled. |
| 730 | */ |
| 731 | void push_back (const T& x) |
| 732 | { |
| 733 | if (size() < N) { |
| 734 | new (&data_[size_]) T(x); |
| 735 | size_++; |
| 736 | } else { |
| 737 | detail::errHandler(CL_MEM_OBJECT_ALLOCATION_FAILURE, __VECTOR_CAPACITY_ERR); |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | /*! \brief Removes the last valid element from the vector. |
| 742 | * Calling this on an empty vector will throw an exception |
no test coverage detected