invoke


code
Syntax [crayon-5cc0cc0b11a15245917027/] 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-5cc0cc0b11a22088072099/] Before invoke: [crayon-5cc0cc0b11a29483528932/] After invoke: [crayon-5cc0cc0b11a2e909589462/] This is pretty handy when you would like / need […]

Library feature: std::invoke