Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void link(vector<string> entries) { // entries contains several strings (each will contain about 25 elements) that need to be splitted
- for (int j = 0; j < entries.size(); ++j) {
- string entry = entries[j];
- // vector<string> elementsInEntry;
- // old split function
- test_custom< vector<string_view> > (entry); // No return value
- typedef string::const_iterator iter;
- typedef boost::iterator_range<iter> string_view;
- for (int i = 0; i < elementsInEntry.size(); ++i) {
- singleElements[elementsInEntry[i]].push_back(myID); // Won't find elementsInEntry
- // strings in singleElements[] are needed later because I need the function string::find() and some more functions string provides
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement