Is There performance difference between this three function return ways (c++)

后端 未结 0 1364
无人及你
无人及你 2021-01-07 03:07
A Function1()
{
    return {1};
}

A Function2()
{
    return A{1};
}

A Function3()
{
    A a{1};
    return a;
}

i tried three ways. they all call

相关标签:
回答
  • 消灭零回复
提交回复
热议问题