4

I was checking on this Boost multi_index composite keys using MEM_FUN

Can someone tell me how to implement erase function for this example ?

Now I am doing

Name_set_by_last::iterator mitchells = names.get<last>().find("mitchell");
names.erase(mitchells );//shows error
Community
  • 1
  • 1
Dev
  • 369
  • 1
  • 5
  • 12

1 Answers1

6

names.get<last>().erase(mitchells);

Joaquín M López Muñoz
  • 5,243
  • 1
  • 15
  • 20