Skip to content

Commit

Permalink
Update transform.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmaj authored Nov 24, 2023
1 parent bba08cc commit 8fbae09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homework/transform-containers/transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ std::map<int, std::string> removeDuplicateAndTranformToMap(std::list<std::string
std::set<std::string> s2{l.begin(), l.end()};

std::transform(s1.begin(), s1.end(), s2.begin(), std::inserter(m, m.begin()), [](const auto &key, const auto &value) {
return std::make_pair(key, value);
});
return std::make_pair(key, value);
});
return m;
}

0 comments on commit 8fbae09

Please sign in to comment.