Please explain this C++ entry

Yes indeed , you are copying the Reference to the local variable InventoryItem.