容器做参数,传地址

来源:互联网 发布:sql报错 字符串截断 编辑:程序博客网 时间:2024/06/03 19:24
void FUNC(list <T>& listYour)
{
  if(listYour.empty()) return;

  list <T>::const_iterator cit = listYour.begin();

}