3 ms·
And with c++11 you can use a lambda capture to make it even cleaner (I'm not sure if this is the right syntax) [&fancyNumber] { // [Mathy stuff redacted]
by Fillipoman 10y ago
And with c++11 you can use a lambda capture to make it even cleaner (I'm not sure if this is the right syntax)
[&fancyNumber]
{
// [Mathy stuff redacted]
fancyNumber = someIntermediateVariable / anotherIntermediateVariable;
}();