How-to: What is the difference between 'typedef' and 'using' in C++11? #answer #solution #it
How-to: What is the difference between 'typedef' and 'using' in C++11? #answer #solution #it
What is the difference between ‘typedef’ and ‘using’ in C++11?
I know that in C++11 we can now use using to write type alias, like typedefs:
typedef int MyInt;
Is, from what I understand, equivalent to:
using MyInt = int;
And that new syntax emerged from the effort to have a way to express “template typedef“:
template< class T > using MyType = AnotherType< T, MyAllocatorType >;
But, with the…
View On WordPress

















