C++ Reference Operator syntax?

44 Views Asked by At
void subscriberCallback(const std_msg::UInt16& msg)

void subscriberCallback(const std_msg::UInt16 &msg)

Are these the same thing? Why is the ampersand listed after the data type instead of before the variable?

0

There are 0 best solutions below