Note this is NOT a duplicate of What does -> mean in C++?
The question is specific to C++11; where a function can look like:
struct string_accumulator {
}
inline auto collect() -> string_accumulator
{
return string_accumulator();
}
What is the meaning of the -> in this context?