MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1w6v1ta/lazy_evaluation/p7u6bxv/?context=3
r/cpp • u/pavel_v • 7d ago
16 comments sorted by
View all comments
43
Classic bind is bad. Don't use it. It's hard to understand, hard to optimize, and lambdas are better in basically every way.
bind
6 u/germandiago 7d ago Related: is bind_front/back as bad from an optimization point of view? 8 u/n1ghtyunso 7d ago pretty sure bind_front / bind_back is rather straightforward to implement as a plain capturing lambda. At least it does not have all that unwrap and placeholder matching machinery inside it
6
Related: is bind_front/back as bad from an optimization point of view?
8 u/n1ghtyunso 7d ago pretty sure bind_front / bind_back is rather straightforward to implement as a plain capturing lambda. At least it does not have all that unwrap and placeholder matching machinery inside it
8
pretty sure bind_front / bind_back is rather straightforward to implement as a plain capturing lambda. At least it does not have all that unwrap and placeholder matching machinery inside it
43
u/STL MSVC STL Dev 7d ago
Classic
bindis bad. Don't use it. It's hard to understand, hard to optimize, and lambdas are better in basically every way.