Example #1
0
ColumnNameIndexMap makeColumnNameMap() {
  auto indexMap = makeColumnIndexMap();
  ColumnNameIndexMap columnMap;
  for (auto &index : indexMap) {
    columnMap.emplace(index.second, index.first);
  }
  return columnMap;
}
ColumnNameIndexMap makeColumnNameMap(){
    auto indexMap = makeColumnIndexMap();
    ColumnNameIndexMap columnMap;
    for(auto it = indexMap.begin(); it != indexMap.end(); ++it){
      columnMap.emplace(it->second, it->first);
    }
    return columnMap;
}