TypeListCat< Lists > Struct Template Reference
Concatenate multiple TypeLists into a single TypeList. More...
Detailed Description
template<typename... Lists>
struct gz::physics::TypeListCat< Lists >
struct gz::physics::TypeListCat< Lists >
Concatenate multiple TypeLists into a single TypeList.
This uses an O(log N) tree-based recursion instead of an O(N) linear recursion. When concatenating many lists (e.g., during feature flattening), a linear recursion would instantiate a deeply nested stack of templates, which can quickly exceed the compiler's maximum instantiation depth or heap space limits (especially on MSVC). By pairing elements and recursing down, we keep the instantiation stack shallow and dramatically reduce compiler memory consumption.
The documentation for this struct was generated from the following file: