https://github.com/kfrlib/cometa
Lightweight, header-only C++14 metaprogramming library. Pattern matching, compile-time stuffs and algorithms (arrays, type information (CTTI), string manipulation), 'value-or-errorcode' union-like type, type for passing named arguments, useful constexpr functions and many more. (MIT license)
https://github.com/kfrlib/cometa
cpp14 header-only meta metaprogramming mit-license
Last synced: about 1 year ago
JSON representation
Lightweight, header-only C++14 metaprogramming library. Pattern matching, compile-time stuffs and algorithms (arrays, type information (CTTI), string manipulation), 'value-or-errorcode' union-like type, type for passing named arguments, useful constexpr functions and many more. (MIT license)
- Host: GitHub
- URL: https://github.com/kfrlib/cometa
- Owner: kfrlib
- License: mit
- Archived: true
- Created: 2016-07-01T15:27:39.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-11T07:41:20.000Z (over 8 years ago)
- Last Synced: 2025-03-05T16:36:41.339Z (over 1 year ago)
- Topics: cpp14, header-only, meta, metaprogramming, mit-license
- Language: C++
- Homepage: https://www.kfrlib.com/
- Size: 44.9 KB
- Stars: 57
- Watchers: 12
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoMeta
[](https://travis-ci.org/kfrlib/cometa)
Lightweight, header-only C++14 metaprogramming library.
Created for [KFR framework](https://github.com/kfrlib/kfr).
## Features
* Pattern matching
* Compile-time arrays
* Compile-time type information (CTTI)
* Compile-time string manipulation
* Compile-time operations on arrays and numbers
* 'value-or-errorcode' union-like type
* type for passing named arguments
* function wrapper (lightweight replacement for std::function)
* Useful constexpr functions and many more.
## Platform
CoMeta is platform-independent but modern C++14 compiler is required.
* AppleClang (XCode 7, 8)
* Clang 3.7 or newer
* GCC 5.1 or newer
## Tests
See `tests/cometa_test.cpp`
## License
MIT
See LICENSE for details