开发者

Can Eclipse CDT generate by-reference getter methods?

开发者 https://www.devze.com 2023-04-07 17:08 出处:网络
Consider: struct A {}; struct B { 开发者_如何学编程A a; } If I let Eclipse automatically generate the getter method for `a\' it has the following signature:

Consider:

struct A {};

struct B {
   开发者_如何学编程A a;
}

If I let Eclipse automatically generate the getter method for `a' it has the following signature:

A B::getA() const;

Is it possible to automatically generate getters with other signatures, e.g.

A& B::getA();

from within Eclipse CDT?

Regards

0

精彩评论

暂无评论...
验证码 换一张
取 消