cpp-templates-metaprogramming
Installation
SKILL.md
C++ Templates and Metaprogramming
Master C++ templates, template metaprogramming, SFINAE, concepts, and compile-time computation. This skill enables you to create generic, type-safe, and highly efficient C++ libraries with compile-time guarantees.
Function Templates
Basic Function Templates
// Simple function template
template<typename T>
T max(T a, T b) {
return (a > b) ? a : b;
}