Reducing C++ template bloat by factoring out type-dependent portions of the function -- Raymond Chen

C++ templates make code reusable, but repeated expansions can quickly increase code size, especially when lambdas are involved. This article explores practical ways to reduce template bloat by separating type-dependent code from the common logic. Reducing C++ template bloat by factoring out…

dev

Sources