#include <iostream>
#include <string>
#include <vector>

int main()
{
    typedef std::vector<std::string> vec_type;
    vec_type v = { "test", "tester", "tester" };

    vec_type::iterator it = v.begin();
    while (it != v.end())
    {
        const std::string& s = *it;

        if (++it == v.end())
            std::cout << "LAST: " << s << '\n';
        else
            std::cout << s << '\n';
    }
}