How to get mesh location in c++?

Hello,everyone,i use spline in BP to control the static mesh moving,i also can use get component bounds in the BP to get the mesh’s current location,but i don’t know how to get the location(also the bounding box) in the C++.
i find the [get Component Bounds] function is just in BP,not in C++ code.
my core target is to get the accurate loation of the mesh when the mesh is moving using spline BP.