今天在阅读一段代码,代 码中用到了list merge函数。
void AddModel(MatchIndex idx, const TwoFrameModel &model) {
if (Contains(idx))
return; // already set
/* Add the model to the hash */
m_models[idx.first][idx.second] = model;
std::list<unsigned int> tmp;
tmp.push_back(idx.second);
m_neighbors[idx.first].merge(tmp);
// tmp.pop_back();
tmp.clear();
tmp.push_back(idx.first);
m_neighbors[idx.second].merge(tmp);
}
3979

被折叠的 条评论
为什么被折叠?



