for (auto iter : list)
  {
   if (条件满足)
    { 
    list.erase(iter);
    break;
   }
  }

 error C2664: “std::_List_iterator>> std::list>::erase(std::_List_const_iterator>>,std::_List_const_iterator>>)”: 无法将参数 1 从“SThriftMsg”转换为“std::_List_const_iterator>>”
1>          with
1>          [
1>              _Ty=SThriftMsg
1>          ]