get index of current element in vector cpp code example Example: c++ get vector element by index vectorName[5]; // Simple