r/cpp•
willhaarhoff

Archetype

Readme: https://github.com/williamhaarhoff/archetype
How it works: https://github.com/williamhaarhoff/archetype/blob/main/docs/how_it_works.md

Archetype is a C++11 header only library for creating type erased, concept driven interfaces without traditional inheritance, or dynamic memory. It enables modular, reusable and low coupling APIs by letting you bind objects to archetype views which are compile time verified interface specifications. Internally Archetype automatically generates manual vtables, which allow binding to any object meeting the interface specification.

Posted Jul 29, 2025, 6:21 AM UTC

3710
Loading comments…