lvalue and rvalue getter, is it possible to remove them?

前端 未结 0 1556
遇见更好的自我
遇见更好的自我 2020-12-16 01:53

Let\'s say we have this simple class

struct MyClass {
    const std::string &getString() const & {
        ret         


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