Home | Info | Community | Development | myReactOS | Contact Us
[protected]
Definition at line 40 of file plusminus_test.cpp.
{ int input1 [4] = { 1, 5, 7, 8 }; int input2 [4] = { 1, 4, 8, 3 }; int output [4]; transform((int*)input1, (int*)input1 + 4, (int*)input2, (int*)output, minus<int>()); CPPUNIT_ASSERT(output[0]==0); CPPUNIT_ASSERT(output[1]==1); CPPUNIT_ASSERT(output[2]==-1); CPPUNIT_ASSERT(output[3]==5); }