27 template <
class ForwardIterator,
class RandomAccessIterator1,
class RandomAccessIterator2>
28 void permute(ForwardIterator mapping_begin, ForwardIterator mapping_end, RandomAccessIterator1 input_begin, RandomAccessIterator2 output_begin)
31 unsigned target_index = 0;
33 for (ForwardIterator i = mapping_begin; i != mapping_end; i++)
34 output_begin[target_index++] = input_begin[*i];
void permute(ForwardIterator mapping_begin, ForwardIterator mapping_end, RandomAccessIterator1 input_begin, RandomAccessIterator2 output_begin)
Definition: permute.h:28