Skip to content

iN1PE/magic_vtable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.5%
  • CMake 15.5%