Skip to content

Class map_indices_impl

class map_indices_impl<size, Fn> meta

template <size_t size, auto... Fn>
struct map_indices_impl { … }

Compile-time index transformer used to build shuffle/permutation tables.

Template parameters
size number of output indices; the input sequence is [0, size) .
Fn... unary callables size_t -> size_t applied right-to-left.
// Square then negate-listed-last-applied-first: result is {0, 1, 4, 9}
 using sq = map_indices_t<4, fn_return_constant<size_t, 0>>; // identity-like example
See also: map_indices_t
See also: map_indices

typedef input_type

using input_type = csizeseq_t<size>

Fully qualified name: kfr::map_indices_impl<size, Fn>::input_type

Declared at meta.hpp:2253

function helper(csizes_t<I...>)

template <size_t... I>
static constexpr auto helper(csizes_t<I...>) { … }

Fully qualified name: kfr::map_indices_impl<size, Fn>::helper(csizes_t<I...>)

Declared at meta.hpp:2275

typedef type

using type = decltype(helper(input_type{}))

Fully qualified name: kfr::map_indices_impl<size, Fn>::type

Declared at meta.hpp:2291

Fully qualified name: kfr::map_indices_impl<size, Fn>

Declared at meta.hpp:2251

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.