mardi 15 décembre 2020

What is foo*(*)? [duplicate]

In a project, I came accross following line of code.

::std::unordered_map<std::string, Channel*(*)(Module*, const Parameters&)>;

Does anyone know what Channel*(*) could mean? Is is the same as Channel**? It seems confusing and overcomplicated to me.

The Channel constructor looks like this:

Channel(Module* module, const util::Parameters& parameters);

Aucun commentaire:

Enregistrer un commentaire