An open API service indexing awesome lists of open source software.

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

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"));