Yes, that (you may use a struct
or a tuple to organize things). You could also use closures, or functors. Here many alternatives were dicussed: Define data-dependent function, various ways
1 Like
Yes, that (you may use a struct
or a tuple to organize things). You could also use closures, or functors. Here many alternatives were dicussed: Define data-dependent function, various ways