Should I use std::for_each?

前端 未结 9 1342
自闭症患者
自闭症患者 2020-12-08 04:18

I\'m always trying to learn more about the languages I use (different styles, frameworks, patterns, etc). I\'ve noticed that I never use std::for_each so I thought that perh

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 04:41

    IMHO, you should try this new features in your test code.

    In the production code you should try the features which you feel comfortable with. (i.e. if you feel comfortable with for_each, you can use it.)

提交回复
热议问题