eternal
A header-only C++14 library for read-only compile-time maps and hash maps with a small binary footprint. It is meant for lookup tables that need no runtime setup.
Share on XLicense: ISC
Overview
eternal.hpp is a header-only C++14 library for constexpr, compile-time maps and hash maps. Its API is somewhat compatible with std::map and std::unordered_map but does not allow insertion or other changes. The focus is small binary size: it generates minimal code and adds no static initialization cost. The README lists lookup tables as the use case and names the compilers it was tested with.
Key features
- Compile-time map via mapbox::eternal::map
- Hash map via mapbox::eternal::hash_map
- constexpr strings with mapbox::eternal::string
- Read-only, so no insertion or modification
- No static initialization overhead
Best for
C++ developers who need fixed lookup tables with minimal binary size. Hash map keys need a std::hash specialization.
- Upstream
- mapbox/eternal
- Fork on GitHub
- Guo-astro/eternal
- Upstream stars
- 223
- Category
- Developer tools and infrastructure
- License
- ISC
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-09-29
More in Developer tools and infrastructure
DBX is a lightweight, cross-platform database client for connecting to and managing over 100 database types. It offers desktop, Docker, and CLI access, plus AI assistance and an MCP Server for database workflows.
Forked 2026-09-29Last synced 2026-09-29License: Apache-2.0Developer tools and infrastructureGitHub
Escrcpy is a graphical desktop interface for scrcpy that mirrors and controls Android devices. It helps developers and testers manage connected devices, including wireless and multi-device workflows.
Forked 2026-09-29Last synced 2026-09-29License: Apache-2.0Developer tools and infrastructureGitHub
Lightpanda is a headless browser built from scratch for AI agents and automation. It aims to be lighter and faster than Chromium and works with Playwright and Puppeteer.
Forked 2026-09-28Last synced 2026-09-29License: AGPL-3.0Developer tools and infrastructureGitHub
A self-hosted open-source monitoring platform for servers, apps and infrastructure. It offers uptime monitoring, distributed checks, incident tracking and alerts.
Forked 2026-09-28Last synced 2026-09-29License: MITDeveloper tools and infrastructureGitHub