lundi 15 octobre 2018

Is it possible to use function output in declaration of another function in C++

I want something like this:

std::tuple<int, bool, double> MyFunction_1 (void);

void MyFunction_2 (decltype (MyFunction_1) &params);

Obviously in this example code pointer to function would be passed

What I want is to have equivalent of this:

void MyFunction_2 (std::tuple<int, bool, double>  &params);

Is it possible to do so?

Aucun commentaire:

Enregistrer un commentaire