template<typename TUpdate> void Tick(const TUpdate& update) { .. update();.. } m_timer.Tick([&]() { .user code. }); in DX12 sample Good ?
-
-
In this example the lambda will be entirely inlined. If [&] references any free variables, those will will sit in a stack allocated object.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.