I just came across this syntax and I am not sure where can I really make use of it.
std::hash<std::string>{}(str);
I see that no variable name was used here for reference to the record created and I would like to know why anyone would be using this syntax to create structs/record except for calling functions/overloaded operators?
Aucun commentaire:
Enregistrer un commentaire