void link(vector 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 elementsInEntry; // old split function test_custom< vector > (entry); // No return value typedef string::const_iterator iter; typedef boost::iterator_range 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 } } }