高手帮忙看一下,不懂什么意思?
在看元素删除的时候,看到这么一段:list<string>::iterator eleml,elem2;
//elem1 refers to vall
elem1 = find(slist.begin(),slist.end(),val1);
//elem2 refers to the first occurrence of val2 after val1
elem2 = find(elem1,slist.end(),val2);
//erase range from val1 up to but not including val2
slist.erase(elem1,elem2);
我想问一下,val1,val2是什么值?是字符串还是……?