Why is std::forward useless in this context

后端 未结 0 419
盖世英雄少女心
盖世英雄少女心 2021-02-15 05:33

It has come to my attention that std::forward is useless in this context:

void consumeObject(std::unique_ptr&& robj) {
  myvec         


        
                      
相关标签:
回答
  • 消灭零回复
提交回复
热议问题