A C++ template library for embedded applications
Designed and maintained by
Aster Consulting Ltd
Join the ETL community

Combinations / Permutations

Templates to provide combinations and permutations constants.

____________________________________________________________________________________________________

Combinations


template <const size_t N, const size_t K>
struct combinations

Member const
static const size_t value = Number of combinations of K items from a total of N

____________________________________________________________________________________________________

Permutations


template <const size_t N, const size_t K>
struct permutations

Member const
static const size_t value = Number of permutations of K items from a total of N
combinations.h / permutations.h