함수 인자로 &A, A 여도 호출은 똑같이 func(A) 인거 나만 몰랐어?

이거 언리얼만 그런가? c++?


auto ToGrid = [](const FVector& Pos) {  //함수 호출시 ToGrid(pos)
    return FIntVector(
        ...
    );
}; 


auto ToGrid = [](const FVector Pos) {.   //함수 호출시 ToGrid(pos)
    return FIntVector(
        ...
    );
}; 


auto ToGrid = [](const FVector* Pos) {  //함수 호출시 ToGrid(&pos)
    return FIntVector(
        ...
    );
};