template <typename R>
class shared_future
{
...
// move support
shared_future(shared_future && other);
shared_future(unique_future<R> && other);
shared_future& operator=(shared_future && other);
shared_future& operator=(unique_future<R> && other);
...
}
Run Code Online (Sandbox Code Playgroud)
究竟是那些双括号?我浏览了"BS C++ Langauge 3d版"并找不到任何解释.
这是rvalue引用的C++ 0x附加.
见http://www.artima.com/cppsource/rvalue.html.