gtl
brew install gtl
v1.2.0
Apache-2.0
Greg's Template Library of useful classes
—
30-day installs
2
90-day · #19431
21
365-day · #13943
308
★ GitHub stars · updated 2mo ago
Build dependencies
GitHub topics
bit-vector
bit-vectors
bitset
bitvector
btree
concurrent
containers
dynamic-bitset
hash
hash-container
hashmap
lru-cache
memoize
soa
unordered
unordered-set
Links
- https://github.com/greg7mdp/gtl
- GitHub: greg7mdp/gtl
- Brew formula source: Formula/g/gtl.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"boost",
"cmake"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Greg\u0027s Template Library of useful classes",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:29+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gtl",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-10T23:49:26Z",
"github_readme_excerpt": "\n\u003cimg src=\"https://github.com/greg7mdp/gtl/blob/main/html/img/phash.png?raw=true\" width=\"120\" align=\"middle\"\u003e\n\n# Greg\u0027s Template Library of useful classes.\n\n [](https://opensource.org/licenses/Apache-2.0) [](https://github.com/greg7mdp/gtl/actions/workflows/linux.yml) [](https://github.com/greg7mdp/gtl/actions/workflows/macos.yml) [](https://github.com/greg7mdp/gtl/actions/workflows/windows.yml)\n\n## Overview\n\nThis repository aims to provide many classes that are commonly needed in substantial C++ projects, but that are either not available in the C++ standard library, or have a specification which makes them slower than they could be. In some cases, the C++ standard requirements prevents from providing faster alternatives (for example the pointer stability requirement for unordered maps or sets prevents providing implementations using open addressing).\n\nAmong the many classes offered by [gtl](https://github.com/greg7mdp/gtl), we have a set of excellent **hash map** implementations, as well as a **btree** alternative to `std::map` and `std::set`. These are *drop-in replacements* for the standard C++ classes and provide the same API, but are significantly faster and use less memory.\n\nWe also have a fast `bit_vector` implementation, which is an alternative to `std::vector\u003cbool\u003e` or `std::bitset`, providing both dynamic resizing and a good assortment of bit manipulation primitives, as well as a novel `bit_view` class allowing to operate on subsets of the `bit_vector`.\n\nWe have `lru_cache` and `memoize` classes, both with very fast multi-thread versions relying of the mutex sharding of the parallel hashmap classes.\n\nWe also offer an `intrusive_ptr` class,",
"github_repo": "greg7mdp/gtl",
"github_stars": 308,
"github_topics": [
"bit-vector",
"bit-vectors",
"bitset",
"bitvector",
"btree",
"concurrent",
"containers",
"dynamic-bitset",
"hash",
"hash-container",
"hashmap",
"lru-cache",
"memoize",
"soa",
"unordered",
"unordered-set"
],
"homepage": "https://github.com/greg7mdp/gtl",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": null,
"installs_365d": 21,
"installs_90d": 2,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": null,
"llm_model": null,
"name": "gtl",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": null,
"rank_365d": 13943,
"rank_90d": 19431,
"raw_hash": "5a5750f9249def3e",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gtl.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "1.2.0",
"versioned_formulae": [],
"why_use_this": null
}