开发者

Can Eclipse CDT generate by-reference getter methods?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜