Registry / utility / refl-cpp

refl-cpp

JSON →
library0.12.4vcpkgunverified

Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).

vcpkg install refl-cpp
INSTALL
IMPORT
SIG · REFL-CPP
R
refl-cpp
utilitycppv0.12.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

refl.hpp
#include <refl.hpp>

Reflect on a struct's members at compile time.

#include <refl.hpp> #include <iostream> struct Point { int x, y; }; template<> struct refl::type_info<Point> : refl::struct_spec { static constexpr auto members = std::make_tuple( refl::member("x", &Point::x), refl::member("y", &Point::y) ); }; int main() { Point p{1, 2}; refl::for_each(p, [](auto& member, const char* name) { std::cout << name << ": " << member << std::endl; }); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

refl-cpp — pip install refl-cpp · libregistry