When passing vectors to functions, which method should be used: reference or pointer?
I see there are (many/all?) cases where any of the two would do the job. Even in those cases, are there any differences in the way the two methods perform?
I do not see if there are cases where only one of the two would work. Is there any such case?
EDIT: The question cited (about general differences pointers vs. references) as containing the answer to this OP is very much related, but I doubt it is a dupe. The differences between pointers and references, as for passing to functions, can surely be inferred from the answers there, but they are also probably much more specific than the general differences asked about there. So not all of the answers there may be relevant here. Moreover, some answers there may be only partially relevant here.