Typedef ctql::reduce_sizes_t
Defined in File reduce.hpp
Typedef Documentation
-
template<template<std::size_t, std::size_t> class Op, std::size_t Init, typename ...Ts>
using ctql::reduce_sizes_t = detail::fold_sizes<detail::HTList<Ts...>, Op, Init> Internal implementation details.
Reduce a pack of
HasStaticSizetypes by folding theirsizewith a binary meta-op.See also
- Complexity
Linear in
sizeof...(Ts).
- Template Parameters:
Op – Binary meta-function class
Op<A,B>that exposesstatic constexpr size_t value. It is applied left-to-right asOp(... Op(Op(Init, size(T1)), size(T2)) ..., size(Tn)).Init – Initial accumulator value.
Ts – Types satisfying
HasStaticSize(must exposestatic constexpr sizeconvertible tosize_t).
- Return:
Alias to
std::integral_constant<size_t, result>.