https://github.com/superpuero/kawa_meta
Header-only, little meta utility library made with c++ 17
https://github.com/superpuero/kawa_meta
constexpr cpp cpp17 meta metaprogramming utility
Last synced: 6 months ago
JSON representation
Header-only, little meta utility library made with c++ 17
- Host: GitHub
- URL: https://github.com/superpuero/kawa_meta
- Owner: superPuero
- Created: 2025-06-25T22:07:14.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-06-25T22:15:42.000Z (6 months ago)
- Last Synced: 2025-06-25T23:22:27.952Z (6 months ago)
- Topics: constexpr, cpp, cpp17, meta, metaprogramming, utility
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⛓️💥 **kawa::meta**
A lightweight, header-only C++17+ library for compile-time type name introspection and hashing.
## Features
- Extracts human-readable type names at compile time
- Computes deterministic FNV-1a hashes for types and strings
- Cross-compiler support for Clang, GCC, and MSVC
- `type_info` utility struct for name/hash pairing
## Example
```cpp
#include "kawa_meta.hpp"
constexpr auto name = kawa::meta::type_name(); // "int"
constexpr auto hash = kawa::meta::type_hash();
static_assert(hash == kawa::meta::string_hash("int"));