5 vector types, 15 functions, only 3 implementations, and the savings get bigger as you add more! donw.io/post/compact...
Compact C++ Maths APIs without copy-paste
Generating compact, efficient C++ vector maths APIs using friend functions, member-pointer packs and external type registration, without inheritance or repetitive implementations.
donw.io