阅读背景:

对于推导出的参数类型如何省略完美的转发?

来源:互联网 

Let's say I have some function a parameter type (or several parameter types) of type which I want to be deduced. Also I want different behavior based on the fact is it rvalue or lvalue. Straightforwardly writing it leads to an obvious (for experienced people) trap because of perfect forwarding:Let's say I have some function a parameter type




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: