2

noexcept例如,指定 on 是否有意义。已删除的移动赋值运算符?例如:

struct A
{
    A& operator=( A&& ) noexcept = delete;
};

如果我不指定它会发生什么变化,我只是写:

struct A
{
    A& operator=( A&& ) = delete;
};
4

0 回答 0