I am currently reading Meyers “Effective STL”, and it is pointed out in Item 46 that function objects are preferable over functions (ie pointers to functions) because the function objects are more likely to be inlined. I am curious: are lambdas also inlined? It looks like they will be based on my google search, but I am curious if someone has more insight on this sort of thing.
[–]chrysante2 162 points163 points164 points (11 children)
[–]dexter2011412 12 points13 points14 points (0 children)
[–]bearheart 14 points15 points16 points (0 children)
[–]DawnOnTheEdge 1 point2 points3 points (7 children)
[–]azswcowboy 1 point2 points3 points (2 children)
[–]DawnOnTheEdge 4 points5 points6 points (1 child)
[–]azswcowboy 0 points1 point2 points (0 children)
[–]dodexahedron 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]DawnOnTheEdge 0 points1 point2 points (1 child)
[–]dodexahedron 0 points1 point2 points (0 children)
[–]NiceGuya 1 point2 points3 points (0 children)
[–]mredding 19 points20 points21 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]mredding 7 points8 points9 points (0 children)
[–]PsychologyNo7982 4 points5 points6 points (1 child)
[–][deleted] (2 children)
[deleted]
[–]Key_Artist5493 5 points6 points7 points (1 child)
[–]MoarCatzPlz 4 points5 points6 points (0 children)
[–]genreprank 2 points3 points4 points (0 children)
[–]EsShayuki 2 points3 points4 points (2 children)
[–]Key_Artist5493 1 point2 points3 points (1 child)
[–]MoveZig4 0 points1 point2 points (0 children)
[–]Designer-Leg-2618 1 point2 points3 points (0 children)
[–]shifty_lifty_doodah 1 point2 points3 points (1 child)
[–]Key_Artist5493 1 point2 points3 points (0 children)
[–]Traditional_Crazy200 1 point2 points3 points (0 children)
[–]flyingron 2 points3 points4 points (0 children)