How can i convert fliflop (flow control) to c++

bIsA = !bIsA;
if (bIsA)
{
//Flip
}
else
{
//Flop
}

bIsA is just a member bool variable (variable declared in the header file)