While analyzing some code I found something like this
auto foo() const -> std::string const&
It's a bit confusing for me. What does that mean exactly? To be more precisely I mean about the part:
std::string const&
While analyzing some code I found something like this
auto foo() const -> std::string const&
It's a bit confusing for me. What does that mean exactly? To be more precisely I mean about the part:
std::string const&
It's the return type: a reference to a const string.