STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
stapl::tuple_ops::result_of::rearrange< Tuple, Order, Indices > Struct Template Reference

Rearrange the contents of a compile-time tuple based on the indicies specified in another compile-time tuple. More...

Detailed Description

template<typename Tuple, typename Order, typename Indices = make_index_sequence<tuple_size<Order>::value>>
struct stapl::tuple_ops::result_of::rearrange< Tuple, Order, Indices >

Rearrange the contents of a compile-time tuple based on the indicies specified in another compile-time tuple.

For example, given the tuple <0, 1, 2> and the order <1, 2, 0>, output the tuple <2, 0, 1>.

Template Parameters
TupleType of the compile-time tuple to reorder
OrderTuple which represents the indices of the other tuple

The documentation for this struct was generated from the following file: