C / C ++中的逻辑取反和赋值运算符?

Is there a more concise way to write the second line of this function without repeating a reduntantly?

void myfunc()
{
    bool a = false;
    a = !a;
}
评论