{"id":16748,"date":"2017-04-24T15:41:27","date_gmt":"2017-04-24T20:41:27","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=16748"},"modified":"2017-04-24T15:41:27","modified_gmt":"2017-04-24T20:41:27","slug":"what-is-a-lambda-expression-in-c11","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=16748","title":{"rendered":"What is a lambda expression in C++11?"},"content":{"rendered":"<blockquote><p>C++ includes useful generic functions like <code>std::for_each<\/code> and <code>std::transform<\/code>, which can be very handy. Unfortunately they can also be quite cumbersome to use, particularly if the <a href=\"http:\/\/stackoverflow.com\/questions\/356950\/c-functors-and-their-uses\">functor<\/a> you would like to apply is unique to the particular function.<\/p><\/blockquote>\n<p>Source: <em><a href=\"http:\/\/stackoverflow.com\/questions\/7627098\/what-is-a-lambda-expression-in-c11\">What is a lambda expression in C++11?<\/a><\/em><\/p>\n<blockquote><p>C++11 introduces lambdas allow you to write an inline, anonymous functor to replace the <code>struct f<\/code>. For small simple examples this can be cleaner to read (it keeps everything in one place) and potentially simpler to maintain,<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>C++ includes useful generic functions like std::for_each and std::transform, which can be very handy. Unfortunately they can also be quite cumbersome to use, particularly if the functor you would like to apply is unique to the particular function. Source: What &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=16748\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[606,1404,107],"class_list":["post-16748","post","type-post","status-publish","format-standard","hentry","category-programming","tag-c","tag-functional-programming","tag-reference"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16748"}],"version-history":[{"count":1,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16748\/revisions"}],"predecessor-version":[{"id":16749,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16748\/revisions\/16749"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16748"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}