What advantages does alias have over typedef?
Show answer and explanation
A using alias reads left-to-right and, unlike typedef, can define alias templates. Both name an existing type rather than create a new strong type.
A using alias reads left-to-right and, unlike typedef, can define alias templates. Both name an existing type rather than create a new strong type.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.