C++ Template Tutorial is a Chinese-language educational guide to C++ templates.
The guide addresses the challenge of understanding C++ templates by treating them as a Turing-complete programming language rather than merely a syntax feature. This approach aims to help readers develop a comprehensive grasp of template metaprogramming. The tutorial covers template syntax fundamentals, including class templates and function templates, before progressing to metaprogramming concepts such as template specialization, partial specialization, SFINAE, and concepts. The material emphasizes that template form and functionality are unified, and explores how templates enable compile-time computation and type-based code generation.
The guide is intended for developers who want to move beyond surface-level template usage and understand the deeper mechanisms of template metaprogramming. It suits those working with modern C++ who need to write generic code or optimize performance through compile-time computation. The tutorial explicitly positions itself as distinct from well-known template textbooks by adopting a language-theoretic perspective on templates rather than a traditional reference approach.
The project remains under active development, with several sections marked as incomplete. The tutorial includes practical example code alongside explanations and provides guidance on recommended compilation environments for testing the material.