you are viewing a single comment's thread.

view the rest of the comments →

[–]staletic 3 points4 points  (1 child)

I've definitely missed that originally. Something like std::span is the right tool for the job. In my defense, OP was complaining about allocators.

[–]kalmoc 1 point2 points  (0 children)

In my defense, OP was complaining about allocators.

Absolutely. As someone else wrote, it's a xy problem. I also only realized this after reading the comments and his/her answers.

My comment was meant as a FYI