r/cpp • • Aug 21 '26

How to write the perfect function

https://youtu.be/2OMRWPOSw9s
140 Upvotes

24 comments sorted by

View all comments

Show parent comment

4

u/parkotron Aug 21 '26

I agree. I understand he wanted to show that an honest function can communicate its result through both through its return value and through modifying an argument, but std::remove_if was a poor choice.

5

u/azswcowboy Aug 21 '26

Still, overall some good thoughts on functional structuring.