tuple_view(3) | tuple_view(3) |
tuple_view - tuple shape transformation
#include <cfl/tuple/tuple_view.hpp>
template <typename U, typename K> struct tuple_view_c;
Changes the shape of a tuple, i.e. rearranges elements but does not change their
values. An example is transposition of tuples. The orignal tuple U
is stored
in the tuple_view_c
container and then tuple element access atK
uses the
provided table K
for lookup.
tuple_view_c
is primarily used for implementation details, and not intended
for the end user. Manually specifying the lookup table K
can be both error
prone and tedious.