How to iterate over different structs in C++ using a single function
I’m developing an Entity Component System (ECS) in C++ and I’m trying to find an efficient way to iterate over different component structs using a single function. Here’s an example of my component structs:
How to iterate over different structs in C++ using a single function
I’m developing an Entity Component System (ECS) in C++ and I’m trying to find an efficient way to iterate over different component structs using a single function. Here’s an example of my component structs: