|
|
|
|
|
by yuushi
3021 days ago
|
|
Out of curiosity, what do you use? I hope it isn't back to raw pointers and size_t offsets for lengths. What do you do if you want to pass a container of ... anything around? What's the replacement for: U do_something(const std::vector<T>& vec);
|
|
The const on the right side makes sure the compiler keeps the memory at the pointed location safe like the const used in your initial question.