10 std::vector<std::string>
names;
11 for (handles::const_iterator
i = begin;
i !=
end; ++
i) {
13 names.push_back((*i)->name);
18 sort(names.begin(), names.end());
20 std::vector<std::string>::iterator
i =
unique(names.begin(), names.end());
21 int nvols = int(i - names.begin());
23 copy(names.begin(),
i, ostream_iterator<std::string>(
cout,
" "));
25 cout << names.size() <<
" ";
26 copy(names.begin(), names.end(), ostream_iterator<std::string>(
cout,
" "));
void printUniqueNames(handles::const_iterator begin, handles::const_iterator end, bool uniq=true)
Just for debugging...
std::string to_string(const V &value)
const std::string names[nVars_]