It's not that complex if you remove all the stuff you don't use: https://godbolt.org/z/rM9ejojv4 .
Main things you would need to understand is specialization (think like pattern matching but compile time) and pack expansion (three dots).