Daily Archives: September 27, 2018


code
Syntax [crayon-5d5c865c030d4109134984/] Invoke gives a uniform way of calling methods and functions. But why would we use this ? Let’s try to call some class functions, assuming we have the following struct defined. [crayon-5d5c865c030e2791620064/] Before invoke: [crayon-5d5c865c030e7986173060/] After invoke: [crayon-5d5c865c030eb963695971/] This is pretty handy when you would like / need […]

Library feature: std::invoke