# downdemo/Cpp-Templates-2ed

Master Modern C++(11/14/17/20) Templates: TMP, SFINAE, Concepts, CRTP, Variadic Magic, and Compile-Time Sorcery

Repository: https://github.com/downdemo/Cpp-Templates-2ed
Canonical: https://ross.abutalabs.com/products/cpp-templates-2ed
Homepage: https://downdemo.github.io/Cpp-Templates-2ed/
Language: C++
License: Apache-2.0
License Family: permissive
Topics: cpp-templates, template-metaprogramming
Last push: 2025-01-24T15:09:36+00:00

## Health v2 (maintenance only)
Score: 34/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 3, release rhythm 35, longevity 100
- inputs: {"age_days": 2730, "days_push": 586, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1638, forks 280 (observed 2026-08-28T04:05:15.070782+00:00)

## What it is
A study-notes repository that condenses the book 'C++ Templates, 2nd Edition' into organized markdown chapters with runnable, verified C++11/14/17/20 example code. It walks through template techniques from function and class templates to SFINAE, concepts, CRTP, variadic templates, traits, type erasure, and template metaprogramming.

## Use cases
- learn C++ template metaprogramming from scratch
- understand SFINAE and template argument deduction
- study C++20 concepts with runnable examples
- master variadic templates and perfect forwarding
- find condensed notes for the C++ Templates 2nd edition book
- learn CRTP, type erasure, and expression templates in C++
- prepare for writing generic C++ infrastructure libraries

## When to choose
- You want a free, condensed companion to the C++ Templates 2nd edition book with code you can compile and run
- You prefer structured chapter-by-chapter notes covering C++11 through C++20 template features
- You are an intermediate C++ developer aiming to master templates, TMP, SFINAE, and concepts

## When to avoid
- You need a reusable template metaprogramming library to link into your project rather than educational notes
- You need the full original textbook's depth rather than condensed summaries
- You are a C++ beginner looking for general language tutorials unrelated to templates

## Facets
- artifact type: learning-resource
- maturity: stable
- function: documentation, developer-tools
- domain: programming-languages, education, tutorials, developer-tools
- platform: cpp, cross-platform
- tags: cpp-templates, template-metaprogramming, generic-programming, sfinae, concepts, crtp, variadic-templates, expression-templates, type-traits, cpp11, cpp17, cpp20, study-notes, book-companion, modern-cpp

## Member repositories
- downdemo/Cpp-Templates-2ed (main) score 34

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:15.070782+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:46:33.434603+00:00, confidence not recorded.
  - readme: https://github.com/downdemo/Cpp-Templates-2ed (fetched 2026-08-28T04:05:15.070782+00:00, sha 998a661e70ff)
  - homepage: https://downdemo.github.io/Cpp-Templates-2ed/ (fetched 2026-08-29T11:19:36.765634+00:00, sha 3e45362320b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
