【发布时间】:2018-03-02 14:39:55
【问题描述】:
请注意,这不是 What does -> mean in C++? 的重复项
这个问题是针对 C++11 的;函数可能如下所示:
struct string_accumulator {
}
inline auto collect() -> string_accumulator
{
return string_accumulator();
}
-> 在这种情况下是什么意思?
【问题讨论】:
-
我没有写下来,但我认为您的标题可能更具体,例如:“函数声明中的什么(...)?”