title: Passing an entire group of variables as one argument to a function C++
body: <p>I'm trying to simulate a system that requires multiple variables and parameters and requires multiple nested functions. I was wondering if there was a way to pass them as a group so I can just pass one or two arguments without having to itemize each parameter and variable within each function and trying to keep track of the location of them all in an array/vector. With R, one can use <code>with()</code> to evaluate a function using a list of named parameters (see <a href="https://stackoverflow.com/questions/37155800/r-with-function-in-python">here</a>). Can you do this with a map in C++?</p>