MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vu3xoh/how_to_write_the_perfect_function/p5b6ul9/?context=3
r/cpp • u/parkotron • Aug 21 '26
24 comments sorted by
View all comments
Show parent comment
4
There's an entire MISRA C++ rule related to correct usage of remove_if.
There are a lot of valid ways to define an "honest function," but I don't think a definition that includes remove_if as "honest" is a complete one
3 u/azswcowboy Aug 23 '26 Ah, thatโs right I forgot about that โ but obviously I agree ๐
3
Ah, thatโs right I forgot about that โ but obviously I agree ๐
View all comments
Show parent comment
4
u/developer-mike Aug 22 '26
There's an entire MISRA C++ rule related to correct usage of remove_if.
There are a lot of valid ways to define an "honest function," but I don't think a definition that includes remove_if as "honest" is a complete one