Using invalidated iterator

前端 未结 0 1090
北海茫月
北海茫月 2021-01-26 18:41

Consider the following function:

template
void remove_unordered(std::vector& vec, T const& val)
{
  auto first = begin(vec);
  whi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题