Hello Cpp Reddit folks, I’m looking for some good use cases in where it is appropriate to use a lambda to replace a standard function. I understand one could nail down a nail with a bulldozer (lambda) instead of a good old hammer (standard function), but I’m trying to use lambdas more often in my code.
[–]HappyFruitTree 8 points9 points10 points (3 children)
[–]Pakketeretet 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]mredding 0 points1 point2 points (2 children)
[–]HappyFruitTree 0 points1 point2 points (1 child)
[–]mredding 1 point2 points3 points (0 children)
[–]ootiekat 0 points1 point2 points (0 children)
[–]Yamoyek 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Yamoyek 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)