# glouw/ctl

The C Template Library

Repository: https://github.com/glouw/ctl
Canonical: https://ross.abutalabs.com/products/ctl
Language: C
License: MIT
License Family: permissive
Last push: 2021-11-09T05:07:44+00:00

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

## Adoption (not part of the score)
Stars 1382, forks 120 (observed 2026-08-28T04:04:34.490548+00:00)

## What it is
CTL is a header-only, template-like container library for ISO C99/C11 that reimplements C++ STL containers such as vector, list, deque, set, and string using macro-based generics. It is fast to compile, type safe, and MIT licensed.

## Use cases
- use STL-style containers in C
- get a type-safe vector or list in C99
- avoid writing generic data structures by hand in C
- port C++ STL code to plain C
- sort and iterate collections in C with minimal boilerplate

## When to choose
- you write ISO C99/C11 and want STL-like containers without a C++ compiler
- you need fast compilation and small dependency-free header-only containers

## When to avoid
- you are already using C++ and can use the real STL
- you need std::map or other containers CTL explicitly does not implement

## Facets
- artifact type: library
- maturity: maintenance
- function: data-science, developer-tools
- domain: developer-tools, programming-languages
- platform: c, cpp, cross-platform
- tags: header-only, stl, containers, c99, c11, templates, generic-programming, algorithms

## Member repositories
- glouw/ctl (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.490548+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-30T04:40:07.111379+00:00, confidence not recorded.
  - readme: https://github.com/glouw/ctl (fetched 2026-08-28T04:04:34.490548+00:00, sha 31e7a59b4dc0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
