int foo(bool arg1, bool arg2)
{
if(arg1){return 1;}
else if(arg2){return 2;}
else return 3;
}
この関数をこれ以上速く記述することって可能でしょうか?
例えばelseを無くしたりすることによって。