80 InputIterator1 last_perm,
81 InputRandomIterator2 r_iproc,
82 InputRandomIterator3 r_size,
83 InputRandomIterator4 r_idx,
84 Size receive_max_size,
86 OutputIterator1 to_proc,
87 OutputIterator2 to_ptr,
88 OutputIterator3 to_idx)
90 OutputIterator2 prec_ptr = to_ptr;
92 while (perm != last_perm) {
94 (*to_proc++) = r_iproc[j1];
95 Size size = r_size[j1];
96 (*to_ptr++) = (*prec_ptr++) + size;
97 InputRandomIterator4 iter_idx = r_idx + j1*receive_max_size;
98 InputRandomIterator4 last_idx = iter_idx + size;
99 while (iter_idx != last_idx)
100 (*to_idx++) = (*iter_idx++) - istart;
void msg_to_context(InputIterator1 perm, InputIterator1 last_perm, InputRandomIterator2 r_iproc, InputRandomIterator3 r_size, InputRandomIterator4 r_idx, Size receive_max_size, Size istart, OutputIterator1 to_proc, OutputIterator2 to_ptr, OutputIterator3 to_idx)