c 2b 2b vector quick search

Solutions on MaxInterview for c 2b 2b vector quick search by the best coders in the world

showing results for - "c 2b 2b vector quick search"
Jonathan
21 Nov 2016
1for ( auto iter = serverList.begin();
2        iter != serverList.end();
3        ++ iter ) {
4    if ( std::search( iter->begin(), iter->end(),
5                      index.begin(), index.end() ) != iter->end() ) {
6        indexResult.push_back( iter - serverList.begin() );
7    }
8}