std::list<std::pair<unsigned int, int> > headIndexes;headIndexes.push_back( std::make_pair( 0, -1 ) );std::list<std::pair<unsigned int, int> >::iterator iter = headIndexes.end();--iter;
C++ (Qt) class test { public: void test_1() const { std::list<std::pair<unsigned int, int> > headIndexes; headIndexes.push_back( std::make_pair( 0, -1 ) ); std::list<std::pair<unsigned int, int> >::iterator iter = headIndexes.end(); --iter; } }; test t; t.test_1();