I\'m having a std::vector with elements of some class ClassA. Additionally I want to create an index using a std::map
std::vector
ClassA
std::map
for lists yes. how? iterator works as a pointer to a particular node in the list. so you can assign values to any struct like:
list mylist;
pair< list::iterator ,int > temp;
temp = make_pair( mylist.begin() , x );