Daily Archives: September 27, 2018


code
Syntax [crayon-5cc0cc7b90973590346924/] 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-5cc0cc7b90980802218891/] Before invoke: [crayon-5cc0cc7b90986200927819/] After invoke: [crayon-5cc0cc7b9098c443485319/] This is pretty handy when you would like / need […]

Library feature: std::invoke