📜  c++向量快速搜索-C++代码示例

📅  最后修改于: 2022-03-11 14:44:45.771000             🧑  作者: Mango

代码示例1
for ( auto iter = serverList.begin();
        iter != serverList.end();
        ++ iter ) {
    if ( std::search( iter->begin(), iter->end(),
                      index.begin(), index.end() ) != iter->end() ) {
        indexResult.push_back( iter - serverList.begin() );
    }
}