Check out example codes for "compare values within within a vector c++". It will help you in understanding the concepts better.

Code Example 1

for (unsigned int i = 1; i < myVector.size(); i++) 
{
    if (myVector[i].size() == myVector[i-1].size()) // .size() should be used
    {
        cout << "SAME SIZE" << endl;
    }
}

Learn ReactJs, React Native from akashmittal.com