|
|
T arr[]
as a function argument is equivalent to T* arr
, so yes you can pass data() to this. This doesn't necessarily mean your logic is correct; are you running into any issues with your code as-is? If so, post a larger excerpt. What is the point of your store function if you are already presumably putting values in the tree in your insert function?