Modern C++ In-Depth — Lambdas, Part 2
Lambdas
Modern C++ In-Depth — Lambdas, Part 2
by Michael Kristofik
From the article
In this installment, we’ll take a closer look at how to write and use lambdas, along with examining a common pitfall.
June 16-21, Sofia, Bulgaria
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Jens Maurer | Jan 19, 2023 01:03 PM | Tags: None
Lambdas
Modern C++ In-Depth — Lambdas, Part 2
by Michael Kristofik
From the article
In this installment, we’ll take a closer look at how to write and use lambdas, along with examining a common pitfall.
By Felix Petriconi | Jan 14, 2023 09:36 AM | Tags: None
The registration for the upcoming ACCU 2023 conference from 2023-04-19 to 2023-04-22 has opened.
ACCU 2023 Registration is open
by ACCU
Again we had the opportunity to assemble a great schedule by speakers from the community who want to share their experience!
Our this years keynote speakers are Björn Fahller, Dave Abrahams, Gail Ollis and Stephanie Brenham.
We have two days with full-day workshops before the conference by Mateusz Pusz, Mike Shah, Nico Josuttis, Peter Sommerlad and Vladimir Vishnevskii.
Again Gail Ollis will give an Early Career Day in colaboration with Chris Oldwood, Giovanni Asproni, Jez Higgins, Jon Skeet, Kevlin Henney and Roger Orr for a reduced fee.
Early bird rates apply until 23.59 GMT on Tuesday 28th February 2023.
By Legalize Adulthood | Jan 14, 2023 08:36 AM | Tags: None
Utah C++ Programmers has released a new video:
Writing Functors with Boost.Lambda2
by Richard Thomson
From the video description:
Lots of standard algorithms require some sort of 'functor' or 'function object' in order to apply predicates and transforming functions to values. This makes the algorithms generic, but requires you to write your own function object classes or lambda functions, which can get a little noisy in the syntax.
Boost.Lambda2 is a library that allows you write lambda functions that look like simple expressions with placeholders for the arguments.
This month, Richard Thomson will give us a breakdown of the Lambda2 library in Boost that makes writing function objects simple and readable. We'll see how to use them with common standard algorithms before looking a little more deeply into how this library is implemented.
By Blog Staff | Jan 13, 2023 10:59 AM | Tags: None
Are you a library person (std::function, std::bind, std::bind_front) or a language person (lambdas, auto, currying)? So many tools to get the job done...
Partial function application
by Rainer Grimm
From the article:
A few weeks ago, I had a discussion with a few of my readers. One reader said that I should write about Partial Function Applications. Another reader mentioned that C++ does not support function applications. This is wrong. C++ supports Partial Function Application. Consequently, I am writing today about
std::function
,std::bind
,std::bind_front
, lambdas,auto
, and currying.Let me start with a bit of theory...
By Blog Staff | Jan 13, 2023 10:57 AM | Tags: None
Perfectly imperfect:
Using perfect (and imperfect) forwarding to simplify C++ wrapper classes
by Raymond Chen
From the article:
There may be cases where you have a C++ class that wants to wrap another C++ class that is contained as a member. ... It’s annoying that there’s so much boilerplate to do the method forwarding, and that we have to keep looking up the parameters and return types so that each forwarder has the correct signature. Fortunately, we can use perfect forwarding to write most of them for us: ...
By Blog Staff | Jan 2, 2023 12:23 PM | Tags: None
A new instant classic for the new year, by the great Phil Nash of C++ on Sea...
By Blog Staff | Jan 1, 2023 11:32 AM | Tags: None
Sending us straight into the new year with cash, cars, and games:
An interview that went viral
by Rainer Grimm
From the article:
I gave the interview for the e-finance-blog "efinancialcareers". I essentially stated the following:
- C++ is heavily used in the finance industry, for game developers, and in the automotive industry.
- When you want to learn C++, start at least with C++11.
- C++ is often used to build infrastructure.
- C++ is too big to fall.
... In total, I got almost 2000 comments. Today, I want to present the main points about the final interview, because this is my motivation for writing articles, posts, and books, recording videos, and teaching and mentoring C++...
By Blog Staff | Dec 24, 2022 10:34 AM | Tags: None
Imagine Jonathan Wakely in a red suit with his helper elves, delivering presents:
libstdc++ gets C++20 <chrono>
As seen on Reddit:
It looks like Jonathan Wakely has just today contributed a huge amount of effort towards
<chrono>
.He's added the time zones, leap seconds, all that good stuff.
He's even added GDB pretty printers for inevitable date time debugging!
And these features are supported in <format>, which libstdc++13 has, if you weren't already aware. He's also made many other various improvements. Lets give a round of applause to Jonathan Wakely!
By Blog Staff | Dec 24, 2022 10:21 AM | Tags: None
With detailed step by step instructions on how to make it work...
Using modules in the big three compilers: a small experiment
From the article:
The goal of my experiment was to see how easy it is to write code that a) uses C++20 modules, b) can be compiled by GCC, Clang and MSVC without using conditional compilation, c) imports something from the standard library, d) exports at least one templated function, e) has a peculiarity that makes the module harder to find (in my case, the module is named b but the file that contains it is named a.cppm).
The experiment sort of succeeded...
By Blog Staff | Dec 24, 2022 10:18 AM | Tags: None
Far east (const?) panel, starting right off with modules:
C++ Tokyo Meetup with JF Bastien, Jason Turner, Chris DiBella