Skip to content

Commit

Permalink
[oneDPL][ranges][merge][test] changes in the checker
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Nov 28, 2024
1 parent 7335ae8 commit 9e768b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel_api/ranges/std_ranges_merge.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ main()

if(it_1 == std::ranges::end(r_1))
{
for(auto it_2 = std::ranges::begin(r_2); it_out != std::ranges::end(r_out); ++it_2, ++it_out)
for(; it_out != std::ranges::end(r_out); ++it_2, ++it_out)
*it_out = *it_2;
return ret_type{it_1, it_2, it_out};
}
else if(it_2 == std::ranges::end(r_2))
{
for(auto it_1 = std::ranges::begin(r_1); it_out != std::ranges::end(r_out); ++it_1, ++it_out)
for(; it_out != std::ranges::end(r_out); ++it_1, ++it_out)
*it_out = *it_1;
return ret_type{it_1, it_2, it_out};
}

if (std::invoke(comp, std::invoke(proj1, *it_1), std::invoke(proj2, *it_2)))
if (std::invoke(comp, std::invoke(proj2, *it_2), std::invoke(proj1, *it_1)))
{
*it_out = *it_1;
++it_1, ++it_out;
*it_out = *it_2;
++it_2, ++it_out;
}
else
{
*it_out = *it_2;
++it_2, ++it_out;
*it_out = *it_1;
++it_1, ++it_out;
}
}

Expand Down

0 comments on commit 9e768b1

Please sign in to comment.