I'm doing a class who takes in constructor a vector<int> keeps and makes
some statistic on the vector whitout modifiing it.
I would like not to make a copy of the vector for the class. to let the full
process be faster a smaller in memory.
I tried to pass the vector by reference using * but that operator doesn't
exist.
my ask is: how the vector are passed to functions?
thanx alot
Giulio
some statistic on the vector whitout modifiing it.
I would like not to make a copy of the vector for the class. to let the full
process be faster a smaller in memory.
I tried to pass the vector by reference using * but that operator doesn't
exist.
my ask is: how the vector are passed to functions?
thanx alot
Giulio
Comment