Message from C, C++ talks

June 2019

— 🌝

— I have programmed a compiler in the last few days, can you please review it for me?

— But its in Pascal unfortunately

— :(

— 

Just read new book A Tour of C++ (2nd edition) (a brief - 240 page - tour of the C++ Programming language and its standard library for experienced programmers)

— Oh? will I become a master of C++ then?

— You can thingking C++modern

— Do I want to program modern C++?

— Btw: how many template arguments does std::vector take?

— No googling on that one 😉

— for (auto &a : stats) {
a.analysis(array);
}

— std::vector<std::thread> threads;
for (auto &a : stats) {
auto t = std::thread(&bitstat::analysis, &a, array);
threads.emplace_back((std::move(t)));
}

for (auto &t : threads) {
if (t.joinable())
t.join();
}

Message permanent page

— Because you're asking.. 2?
For the type and for the allocator type?

— Yea!

— 

std::for_each(std::execution::par, stats.begin(), stats.end(), [&array](auto &&item) { item.analysis(array); });

Message permanent page