Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Notes of talk: C++ in the 21st century

📅 2016-Jun-16 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ begin, chrono, cpp, cpp11, decltype, end, error_code, lambda, override, talk, unique_ptr ⬩ 📚 Archive

I recently came across a 2014 talk by Arvid Norberg about the new features in C++11. The video is here and slides are here.

C++ is huge and getting bigger every day. So, I keep discovering interesting new features that I like to note down for use in my own code. Below are my notes from this talk. I do not note aspects that I already know well. This talk has examples that are small but illustrative, so if you hit any of these features, you should see the video to look at the examples.

For loops

decltype

// vector of the return type of function f
std::vector<decltype(f())> vals;

lambda functions

override

unique_ptr

error_code

This C++11 feature was something new to me! I did not understand how to apply it either. I might need to study this in future.

chrono