C++11 decltype in real conditions
January 18, 2017 · 1 minute to read · C++, C++11
Today, I would like to talk about the usage of
decltype specifier. Appeared in C++11, this new keyword “returns” the type of a variable or an expression. It is similar to
auto keyword but not in all situations.
decltype, compiler can now deduce return type from template.
I will update this article from time to time, with new examples.