// Induction
template <int N>
struct Factorial {
static const int value = N * Factorial<N - 1>::value;
};
// Base case via template specialization:
template <>
struct Factorial<0> {
static const int value = 1;
};
Sample: Code Highlight
By Hakim El Hattab
Sample: Code Highlight
A few examples of syntax highlighted code inside of decks.