tuple is a C++11 construction and it is built heavily on variadic templates.
tuple is a variadic class template that stores an unlimited set of values of different types, defined when instantiating the tuple; for example:
tuple<int, int> x;
will store 2 integers.
tuple<string, int, bool> y;
will store one string, one integer and one boolean and so on.
Continue reading “C++11: std::tuple”
This is the third post of several posts I wrote related to smart pointers:
- Smart pointers
- More on unique_ptr
Ok, here I am going to write about two other features that unique_ptr has that I did not mention in my last post.
unique_ptr default behavior consists on take ownership of a pointer created with
new and that would normally be released with
Continue reading “C++: Smart pointers, part 3: More on unique_ptr”