Arrow operator (->) in function heading
I came across the following code: template <typename T, typename T1> auto compose(T a, T1 b) -> decltype(a + b) { return a+b; … Read more
I came across the following code: template <typename T, typename T1> auto compose(T a, T1 b) -> decltype(a + b) { return a+b; … Read more
In c++14 the decltype(auto) idiom is introduced. Typically its use is to allow auto declarations to use the decltype rules on the given … Read more
From all the material I used to learn C++, auto has always been a weird storage duration specifier that didn’t serve any purpose. … Read more
If you read code like auto&& var = foo(); where foo is any function returning by value of type T. Then var is … Read more
I can see why the auto type in C++11 improves correctness and maintainability. I’ve read that it can also improve performance (Almost Always … Read more
I’ve been using the new auto keyword available in the C++11 standard for complicated templated types which is what I believe it was … Read more