|
|
|
|
|
by quicknir
3934 days ago
|
|
Hi, thanks yassim. Yes, the use case is from the original article. Yes, that is certainly another way to go, you could just provide the unique_ptr and a bunch of integer offsets. In this post, my data structure is trying to balance performance and code cleanliness, it's advantageous to provide standalone ArrayView which can't just be two integers. In the follow up post I'll be trying to make the data structure itself generic, so it will more easily allow for space optimizations. I guess we'll agree to disagree, I think that C++ gives us some nice ways of writing it, I think that's what the post shows :-) |
|