uf_list转vector

std::vector<tag_t> toTag(uf_list_p_t  uf_list)
{
    std::vector<tag_t> temp;
    uf_list_s *t = uf_list;
    while (t)
    {
        temp.push_back(t->eid);
        t = t->next;
    }
    return temp;
}

 

posted @ 2021-11-26 13:57  T_T2001  阅读(169)  评论(2)    收藏  举报