I am not proficient in C++. I have a very short C++ script I am trying to convert to PHP which deals with vectors.
From online documentation I gather that vectors are lists of stuff, somewhat like arrays in PHP but with less features. However, I am struggling to find good documentation on vector manipulation.
For example
real32 test(std::vector<T>::iterator First, std::vector<T>::iterator Last)
{
    if(Last - First > 0) {
        // do stuff
    }
}
In this snippet I can hazard a guess at a number of outcomes to do with Last - First.
- The difference in the number of elements between each vector
- The difference in the sum of the elements between each vector
- The difference between single elements in each vector (guessing from iterator- but this might be the for loop in the//do stuff part)
I am trying to RTFM but the some of the on-line resources I have stumbled across don't come across as particularly insightful (although maybe I am not able to ask/search the right question)
What is Last - First actually doing in this case?
 
     
     
    