Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

3 votes
Accepted

A recursive_flatten_view Template Function Implementation in C++

Copies everywhere I know that all unnecessary copy operations should be avoided, but I am not sure the way which I've done is correct. You haven't avoided unnecessary copies at all. In fact, you are ...
G. Sliepen's user avatar
  • 57.5k
1 vote
Accepted

A recursive_flatten Template Function Implementation in C++

Create a flattened view instead You have created a function which copies from a nested container into a flat container. However, often you don't want to create a new container, instead you just want ...
G. Sliepen's user avatar
  • 57.5k

Top 50 recent answers are included