invoke


code
Syntax [crayon-5d134ece0dd2e274980872/] 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-5d134ece0dd3a185255102/] Before invoke: [crayon-5d134ece0dd3f675914400/] After invoke: [crayon-5d134ece0dd43947004856/] This is pretty handy when you would like / need […]

Library feature: std::invoke