You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::mem_fn and std::bind have performance issues, can't be inlined, etc.
lots of hidden gotchas to the above
use lambdas (it is a core language feature, not an STL feature)
std::function is awesome, but use it only when necessary (if you can use a template class or auto or something then that is better), but it does have space cost and it prevents inlining.
See video by Stephan T Lavavej from CPPCON 2015.
The text was updated successfully, but these errors were encountered:
std::mem_fn
andstd::bind
have performance issues, can't be inlined, etc.See video by Stephan T Lavavej from CPPCON 2015.
The text was updated successfully, but these errors were encountered: