BP Function 'Get Local Bounds' returns Min and Max while its C++ void function accepts Min and Max

I am new to UE5 and I tried to replicate the ‘Get Local Bounds’ blueprint function (in C++) that accepts a target (which is a static mesh in my case) and returns the vectors Min and Max. When I click on Goto Definition it shows me the corresponding C++ function that is different: void UStaticMeshComponent::GetLocalBounds(FVector& Min, FVector& Max) const {…}. It should instead somehow output these vectors and not require them as arguments.

For anyone who doesn’t immediately understand how that’s supposed to work: The supplied FVectors will be changed. That way, the function doesn’t have to return anything.