MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / operator==

Function operator==

include/internal/CL/cl.hpp:807–819  ·  view source on GitHub ↗

! \brief Tests equality against another instance. * * \param vec the vector against which to compare. */

Source from the content-addressed store, hash-verified

805 * \param vec the vector against which to compare.
806 */
807 bool operator==(vector<T,N> &vec)
808 {
809 if (size() != vec.size()) {
810 return false;
811 }
812
813 for( unsigned int i = 0; i < size(); ++i ) {
814 if( operator[](i) != vec[i] ) {
815 return false;
816 }
817 }
818 return true;
819 }
820
821 //! \brief Conversion operator to T*.
822 operator T* () { return data_; }

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected