simplify MemoryManager.cuh
Reduce the number of template arguments of helper struct
s by moving them to the function inside them, and allowing the compiler to deduce them from the arguments. In addition, prefer fold expressions over recursive templates.
Edited by Gerhard Raven