Which is more efficient in this scenario: return a member by reference, or return as pointer?

前端 未结 0 1011
你的背包
你的背包 2020-12-02 08:19

As an example, I have a class that uses the Eigen library as follows:

class A
{ 
    private: 
    Eigen::MatrixXd _matrix; 
    public: 
    Eigen::MatrixXd          


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