Anonymous
11/10/2025, 9:52:01 PM
No.107166228
[Report]
>>107166535
>>107166888
>>107167203
>>107167430
>>107169271
>>107169297
>>107170406
void func()
{
A* a = new A();
a->foo();
A z;
z.foo();
}
Assuming foo is not virtual and ignoring allocator overhead, why might z.foo() be faster than a->foo?
You should be able to solve this
{
A* a = new A();
a->foo();
A z;
z.foo();
}
Assuming foo is not virtual and ignoring allocator overhead, why might z.foo() be faster than a->foo?
You should be able to solve this