Efficiently get the size of a parameter pack up to a certain index
- by NmdMystery
I want to be able to determine the number of bytes that are in a subset of a parameter pack from 0 to a given index.
Right now I'm using a non-constexpr way of doing this. Below is my code:
template <size_t index, typename... args> struct pack_size_index;
template <size_t index, typename type_t, typename... args>
struct…