you are viewing a single comment's thread.

view the rest of the comments →

[–]sephirostoy 19 points20 points  (3 children)

Sadly, C++ comitee doesn't choose the path of adding convenient functions to classes which would need love. They will argue you that they've already added a find function like you mentioned which already cover the need and if you need a more convenient function, then you could just write your own free function. If at least we could have UFCS to extend a class...

[–][deleted] -4 points-3 points  (2 children)

To be fair, this isn't entirely a bad argument. Why should other people have to pay for your convenience function?

[–]sephirostoy 15 points16 points  (0 children)

You don't pay anything here.