我正在努力使用以下代码。该声明是否会this->oEvent = oEvent;
复制或引用 oEvent?
class Test {
private:
map<string, string> oEvent;
public:
run( map<string, string> &oEvent ) {
this->oEvent = oEvent;
}
};
我正在努力使用以下代码。该声明是否会this->oEvent = oEvent;
复制或引用 oEvent?
class Test {
private:
map<string, string> oEvent;
public:
run( map<string, string> &oEvent ) {
this->oEvent = oEvent;
}
};