A struct Account has a method getName() that returns the account holder's name as follows:
struct Account {
const std::string& getName() { return name_; }
private:
std::string name_;
};
Somewhere Account::getName is called as:
// account is of type Account
auto name = account.getName();
What is the deduced type of name above?