I have this iterator that I want to format so the output is something like this. < "Index of first node"(first value of iterator)<<"Second index"(second value of iterator). Can anyone help me with this.
void Level::printAstarList(list<int> AstarList)
{
// cout<<"<";
std::list<int>::const_reverse_iterator it;
for (it = AstarList.rbegin(); it != AstarList.rend(); ++it)
{
cout<<*it;
}
cout<<"<";
}