标签: c++ c++11 declaration rvalue-reference rvalue
E && e0 = E () ; E e1 ;
这两种对象声明案例之间是否存在差异? ;
答案 0 :(得分:2)
在你的例子中:
E()
e0
E&&
E
e1
因此,如果下面的代码没有区分E和E&&(例如,decltype会auto不会),那么它们会表现出来相同。
decltype
auto