Skip to content

Commit

Permalink
Use structured binding
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Aug 27, 2024
1 parent ec927d9 commit 10db2bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ struct random_string_generator {

__host__ __device__ void operator()(thrust::tuple<int64_t, int64_t> str_begin_end)
{
auto begin = thrust::get<0>(str_begin_end);
auto end = thrust::get<1>(str_begin_end);
auto const [begin, end] = str_begin_end;
engine.discard(begin);
for (auto i = begin; i < end; ++i) {
auto ch = char_dist(engine);
Expand Down

0 comments on commit 10db2bb

Please sign in to comment.