Ok, what is the best way to access the last element of the vector i just populated? So in the same function I push a matrix on to that vector and I then want to use that matrix and multiply it against another matrix. what would be the best approach of doing this?

vector<Matrix> MatStack;

MatStack.push_back(newMatrix);

MatStack[MatStack.Size()] * differentMatrix;

or

MatStack[MatStack.Size() - 1] * differentMatrix;