Skip to content

Commit

Permalink
Function inlining solution v2
Browse files Browse the repository at this point in the history
  • Loading branch information
romaf5 committed Oct 28, 2024
1 parent 12a2a9f commit dd7a5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labs/core_bound/function_inlining_1/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

void solution(std::array<S, N> &arr) {
std::sort(arr.begin(), arr.end(), [](const S &a, const S &b) {
return std::tie(a.key1, a.key2) < std::tie(b.key1, b.key2);
return std::tuple(a.key1, a.key2) < std::tuple(b.key1, b.key2);
});
}

0 comments on commit dd7a5d4

Please sign in to comment.