In C++ you can easily get the underlying value from the iterator. ie:
std::vector numbers = { 1, 2, 3, 4, 5 }; for (std::vector::iterat