dimanche 24 septembre 2017

When to use std::invoke (c++ 17) instead of simply calling the invokable?

I'm new to c++17 so sorry if I ask nonsense.

As I understand, std::invoke allows me to do something like:

std::invoke(f, arg1, arg2, ...);

Is there a scenario when it's more advantages than simply doing:

f(arg1, arg2, ...);

Aucun commentaire:

Enregistrer un commentaire