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

Function clear

include/internal/CL/cl.hpp:720–725  ·  view source on GitHub ↗

! \brief Empties the vector of all elements. * \note * This does not deallocate memory but will invoke destructors * on contained elements. */

Source from the content-addressed store, hash-verified

718 * on contained elements.
719 */
720 void clear()
721 {
722 while(!empty()) {
723 pop_back();
724 }
725 }
726
727 /*! \brief Appends an element after the last valid element.
728 * Calling this on a vector that has reached capacity will throw an

Callers 3

~vectorFunction · 0.85
cl.hppFile · 0.85
assignFunction · 0.85

Calls 2

emptyFunction · 0.85
pop_backFunction · 0.85

Tested by

no test coverage detected