This question already has an answer here:
- arrow operator (->) in function heading 2 answers
For example, in:
virtual auto create_obj() -> std::unique_ptr<Base>
{
return std::unique_ptr<Base>{};
}
What does -> signify ? Since the return type is specified as auto, why is it necessary ?
Aucun commentaire:
Enregistrer un commentaire