Category Archives: C++11

Avoid finding twice the same key in the map (part 2)

Later, I found the following code:

Posted in C++, C++11, STL | Leave a comment

Avoid finding twice the same key in the map (part 1)

This is unfortunate, but I regularly still see the following piece of code:

Posted in C++, C++11, STL | Leave a comment

An optional member of an optional object

My colleague told me that boost::optional suffers from missing the ability of building an optional of a member from an optional of its parent object.

Posted in boost, C++, C++11, optional | Leave a comment

Implementing comparators with tuple

C++11 introduces the interesting std::tuple feature. Here, I will present the usage of std::tie to implement comparison operators in a class.

Posted in C++, C++11 | Leave a comment

Memory size of unique_ptr with custom deleter

About the memory size of a unique_ptr with a custom deleter … Continue reading

Posted in C++, C++11 | Tagged , , , , | Leave a comment