DisabledMallis / magic_vtable

A small C++23 library to acquire vtable information at compile time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magic VTable

A small C++23 library to acquire vtable information at compile time

Usage

Get a vtable function index at compile time

constexpr auto index = magic_vft::vtable_index<&TestClass::c>();
std::cout << index.value() << std::endl;

or at runtime

std::cout << magic_vft::vtable_index<&TestClass::b>().value() << std::endl;

About

A small C++23 library to acquire vtable information at compile time

License:MIT License


Languages

Language:C++ 84.5%Language:CMake 15.5%