lazy evaluate expensive local variable ONLY when needed within “if constexpr” WITHOUT run time if-else
I have to use variable v
in 5-10 locations in a function.
From profiling, v
is (relatively) very expensive to initialize.
lazy assign expensive local variable ONLY when needed within “if constexpr” WITHOUT run time if-else
I have to use variable v
in 5-10 locations in a function.
From profiling, v
is (relatively) very expensive to initialize.
lazy initialization expensive local variable ONLY when needed within “if constexpr” WITHOUT run time if-else
I have to use variable v
in 5-10 locations in a function.
From profiling, v
is (relatively) very expensive to initialize.