meta.hpp
meta.hpp copied to clipboard
C++20 Dynamic Reflection Library
meta.hpp
C++20 tiny dynamic reflection library
Requirements
Installation
meta.hpp is a header-only library. All you need to do is copy the headers files from headers
directory into your project and include them:
#include "meta.hpp/meta_all.hpp"
Also, you can add the root repository directory to your cmake project:
add_subdirectory(external/meta.hpp)
target_link_libraries(your_project_target meta.hpp)
Examples
- Class
- Enum
- Function
- Member
- Method
- Variable
Features
- can reflect:
- arrays
- classes
- constructors
- destructors
- enums
- functions
- member
- methods
- numbers
- pointers
- references
- typedefs
- variables
- has different behaviour bind policies
- supports multiple and virtual inheritance
- allows add additional metadata to all types
- calls functions/methods with runtime variables
- doesn't contain 3rd-party dependencies
- can be used without rtti and exceptions
API
coming soon