MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / push_back

Function push_back

include/internal/CL/cl.hpp:731–739  ·  view source on GitHub ↗

! \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. */

Source from the content-addressed store, hash-verified

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

Callers 2

vectorFunction · 0.85
assignFunction · 0.85

Calls 2

sizeFunction · 0.85
errHandlerFunction · 0.85

Tested by

no test coverage detected