pxd2046
2022-04-09 14:51
采纳率: 100%
浏览 21

求解惑:这里符号&是什么意思?


Notification::Notification(const Notification& other)
{
    CALL_MEMBER_FN(&text, Set)(other.text.Get(), 0);
    CALL_MEMBER_FN(&status, Set)(other.status.Get(), 0);

    CALL_MEMBER_FN(&sound, Set)(other.sound.c_str());
    objectives.CopyFrom(&other.objectives);

    type = other.type;
    quest = other.quest;
    word = other.word;
    time = other.time;
}

const Notification&,这个&既不是取址也不是引用,不懂。

1条回答 默认 最新

相关推荐 更多相似问题